mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-03 08:48:40 +02:00
[ui] Clear locally submitted nodes before loading a new graph
When loading a new graph while the opened one was locally computing nodes, computations were automatically stopped to be able to load the new graph. However, the computing chunks' status were not being updated before the graphs were switched up. This meant that opening that previously computing graph again would lead to a display in which nodes appeared to be computing although there was no ongoing computations.
This commit is contained in:
parent
1cd4ffc081
commit
b08f83552e
3 changed files with 14 additions and 0 deletions
|
@ -779,6 +779,12 @@ class BaseNode(BaseObject):
|
|||
if chunk.isAlreadySubmitted():
|
||||
chunk.upgradeStatusTo(Status.NONE, ExecMode.NONE)
|
||||
|
||||
def clearLocallySubmittedChunks(self):
|
||||
""" Reset all locally submitted chunks to Status.NONE. """
|
||||
for chunk in self._chunks:
|
||||
if chunk.isAlreadySubmitted() and not chunk.isExtern():
|
||||
chunk.upgradeStatusTo(Status.NONE, ExecMode.NONE)
|
||||
|
||||
def upgradeStatusTo(self, newStatus):
|
||||
"""
|
||||
Upgrade node to the given status and save it on disk.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue