mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-02 16:28:51 +02:00
[ui] GraphEditor: check sessionUid for stop/cancel computation
This commit is contained in:
parent
32a7005928
commit
a00c82cd2f
2 changed files with 17 additions and 4 deletions
|
@ -916,6 +916,15 @@ class BaseNode(BaseObject):
|
|||
self._duplicates.setObjectList([node for node in nodesPerUid.get(uid) if node != self])
|
||||
self.duplicatesChanged.emit()
|
||||
|
||||
@Slot(result=bool)
|
||||
def statusInThisSession(self):
|
||||
if not self._chunks:
|
||||
return False
|
||||
for chunk in self._chunks:
|
||||
if chunk.status.sessionUid != meshroom.core.sessionUid:
|
||||
return False
|
||||
return True
|
||||
|
||||
name = Property(str, getName, constant=True)
|
||||
label = Property(str, getLabel, constant=True)
|
||||
nodeType = Property(str, nodeType.fget, constant=True)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue