[mesh] Texturing: set parameters for multi-band blending

Use only 3 parameters : useScore, multiBandDownscale, multiBandNbContrib
This commit is contained in:
Clara 2019-05-07 10:48:01 +02:00
parent 00188c9aef
commit 9f928e1ea0
2 changed files with 32 additions and 15 deletions

View file

@ -414,7 +414,9 @@ class GroupAttribute(Attribute):
return {name: attr.getPrimitiveValue(exportDefault=exportDefault) for name, attr in self._value.items() if not attr.isDefault}
def getValueStr(self):
return self.attributeDesc.joinChar.join([v.getValueStr() for v in self._value.objects.values()])
# sort values based on child attributes group description order
sortedSubValues = [self._value.get(attr.name).getValueStr() for attr in self.attributeDesc.groupDesc]
return self.attributeDesc.joinChar.join(sortedSubValues)
# Override value property
value = Property(Variant, Attribute._get_value, _set_value, notify=Attribute.valueChanged)