[graph] GroupAttribute: emit valueChanged when children values change

make sure 'isDefault' property is re-evaluated when a child value changes
This commit is contained in:
Yann Lanthony 2018-02-05 18:22:56 +01:00
parent 75f33bdba0
commit 2b76266fe7

View file

@ -369,6 +369,7 @@ class GroupAttribute(Attribute):
for subAttrDesc in self.attributeDesc.groupDesc: for subAttrDesc in self.attributeDesc.groupDesc:
childAttr = attribute_factory(subAttrDesc, None, self.isOutput, self.node, self) childAttr = attribute_factory(subAttrDesc, None, self.isOutput, self.node, self)
subAttributes.append(childAttr) subAttributes.append(childAttr)
childAttr.valueChanged.connect(self.valueChanged)
self._value.reset(subAttributes) self._value.reset(subAttributes)