Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion meshroom/core/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -1191,6 +1191,9 @@ def updateStatisticsFromCache(self):
def _updateChunks(self):
pass

def _updateNodeSize(self):
self.setSize(self.nodeDesc.size.computeSize(self))

def _getAttributeChangedCallback(self, attr: Attribute) -> Optional[Callable]:
""" Get the node descriptor-defined value changed callback associated to `attr` if any. """

Expand Down Expand Up @@ -1272,6 +1275,8 @@ def updateInternals(self, cacheDir=None):
for attr in self._attributes:
attr.updateInternals()

self._updateNodeSize()

# Update chunks splitting
self._updateChunks()
# Retrieve current internal folder (if possible)
Expand Down Expand Up @@ -1868,7 +1873,6 @@ def _updateChunks(self):
""" Update Node's computation task splitting into NodeChunks based on its description """
if isinstance(self.nodeDesc, desc.InputNode):
return
self.setSize(self.nodeDesc.size.computeSize(self))
if self.isParallelized:
try:
ranges = self.nodeDesc.parallelization.getRanges(self)
Expand Down Expand Up @@ -1951,6 +1955,10 @@ def __init__(self, nodeType, nodeDict, position=None, issue=CompatibilityIssue.U
def _isCompatibilityNode(self):
return True

def _updateNodeSize(self):
# Block the recompute of the node size for compatibility nodes
pass

@staticmethod
def attributeDescFromValue(attrName, value, isOutput):
"""
Expand Down
Loading