mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-04-28 17:57:16 +02:00
[core] Node: Status should be NONE
when there is no chunk
Prior to this commit, nodes with a varying number of chunks were initialized with an empty list of chunks (as expected), but with a global status that was set to `SUCCESS` instead of `NONE`. This caused issue on the graphical side as `SUCCESS` is interpreted as the status for nodes that have been successfully computed.
This commit is contained in:
parent
08614a398d
commit
df7e6f8845
1 changed files with 3 additions and 0 deletions
|
@ -1174,6 +1174,9 @@ class BaseNode(BaseObject):
|
|||
"""
|
||||
if isinstance(self.nodeDesc, desc.InputNode):
|
||||
return Status.INPUT
|
||||
if not self._chunks:
|
||||
return Status.NONE
|
||||
|
||||
chunksStatus = [chunk.status.status for chunk in self._chunks]
|
||||
|
||||
anyOf = (Status.ERROR, Status.STOPPED, Status.KILLED,
|
||||
|
|
Loading…
Add table
Reference in a new issue