[core] Prevent bug from onAttributeChanged when setting value of self attribute

This commit is contained in:
Aurore LAFAURIE 2024-06-17 16:00:14 +02:00
parent f4404f287f
commit aacacb1d65

View file

@ -37,9 +37,9 @@ def attributeFactory(description, value, isOutput, node, root=None, parent=None)
cls = Attribute
attr = cls(node, description, isOutput, root, parent)
if value is not None:
attr.value = value
attr._set_value(value, emitSignals=False)
else:
attr.resetToDefaultValue()
attr.resetToDefaultValue(emitSignals=False)
return attr