mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-07-20 10:07:16 +02:00
[core] attr: uid for dynamic output attributes use the node uid
This commit is contained in:
parent
c2a699e484
commit
695d590ea6
1 changed files with 6 additions and 2 deletions
|
@ -273,8 +273,12 @@ class Attribute(BaseObject):
|
||||||
# 'uidIndex' should be in 'self.desc.uid' but in the case of linked attribute
|
# 'uidIndex' should be in 'self.desc.uid' but in the case of linked attribute
|
||||||
# it will not be the case (so we cannot have an assert).
|
# it will not be the case (so we cannot have an assert).
|
||||||
if self.isOutput:
|
if self.isOutput:
|
||||||
# only dependent on the hash of its value without the cache folder
|
if self.desc.isDynamicValue:
|
||||||
return hashValue(self._invalidationValue)
|
# if it is dynamic, the uid is the one from the node itself
|
||||||
|
return self.node._uids.get(uidIndex)
|
||||||
|
else:
|
||||||
|
# only dependent on the hash of its value without the cache folder
|
||||||
|
return hashValue(self._invalidationValue)
|
||||||
if self.isLink:
|
if self.isLink:
|
||||||
linkParam = self.getLinkParam(recursive=True)
|
linkParam = self.getLinkParam(recursive=True)
|
||||||
return linkParam.uid(uidIndex)
|
return linkParam.uid(uidIndex)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue