mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-22 21:46:28 +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 = ""
|
self._value = ""
|
||||||
|
|
||||||
def getExportValue(self):
|
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)
|
name = Property(str, getName, constant=True)
|
||||||
label = Property(str, getLabel, constant=True)
|
label = Property(str, getLabel, constant=True)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue