Skip to content

Commit 172e108

Browse files
FIX: isSet on new Data with no value nor DefaultValue
1 parent e347db8 commit 172e108

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Plugin/src/SofaPython3/DataHelper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ BaseData* addData(py::object py_self, const std::string& name, py::object value,
541541
BaseData* data;
542542

543543
bool isSet = true;
544-
if (value.is_none() && !defaultValue.is_none())
544+
if (value.is_none())
545545
{
546546
value = defaultValue;
547547
isSet = false;

0 commit comments

Comments
 (0)