From 695d590ea6c9f074255b197dda3fa6ca2c2db75c Mon Sep 17 00:00:00 2001 From: Fabien Castan Date: Sun, 16 Jun 2024 18:40:59 +0200 Subject: [PATCH] [core] attr: uid for dynamic output attributes use the node uid --- meshroom/core/attribute.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/meshroom/core/attribute.py b/meshroom/core/attribute.py index 04a51860..bac817d2 100644 --- a/meshroom/core/attribute.py +++ b/meshroom/core/attribute.py @@ -273,8 +273,12 @@ class Attribute(BaseObject): # '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). if self.isOutput: - # only dependent on the hash of its value without the cache folder - return hashValue(self._invalidationValue) + if self.desc.isDynamicValue: + # 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: linkParam = self.getLinkParam(recursive=True) return linkParam.uid(uidIndex)