mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-22 05:26:29 +02:00
[core] Attribute: getExportValue give the expression on output attributes
On output attributes, we export the desc value which contains the expression and not the locally evaluated value.
This commit is contained in:
parent
ee7c0d0fd5
commit
3a6473b78f
1 changed files with 5 additions and 1 deletions
|
@ -219,7 +219,11 @@ class Attribute(BaseObject):
|
|||
self._value = ""
|
||||
|
||||
def getExportValue(self):
|
||||
return '{' + self.getLinkParam().fullName() + '}' if self.isLink else self._value
|
||||
if self.isLink:
|
||||
return '{' + self.getLinkParam().fullName() + '}'
|
||||
if self.isOutput:
|
||||
return self.desc.value
|
||||
return self._value
|
||||
|
||||
name = Property(str, getName, constant=True)
|
||||
label = Property(str, getLabel, constant=True)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue