mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-06-03 03:11:56 +02:00
[core] Node: update duplicate nodes' status without any latency
This commit is contained in:
parent
b5e126c2e4
commit
5d63d02a33
1 changed files with 9 additions and 1 deletions
|
@ -475,7 +475,7 @@ class BaseNode(BaseObject):
|
||||||
self._duplicates = ListModel(parent=self) # list of nodes with the same uid
|
self._duplicates = ListModel(parent=self) # list of nodes with the same uid
|
||||||
self._hasDuplicates = False
|
self._hasDuplicates = False
|
||||||
|
|
||||||
self.globalStatusChanged.connect(self.updateLocked)
|
self.globalStatusChanged.connect(self.updateDuplicatesStatusAndLocked)
|
||||||
|
|
||||||
def __getattr__(self, k):
|
def __getattr__(self, k):
|
||||||
try:
|
try:
|
||||||
|
@ -864,6 +864,14 @@ class BaseNode(BaseObject):
|
||||||
self.lockedChanged.emit()
|
self.lockedChanged.emit()
|
||||||
|
|
||||||
@Slot()
|
@Slot()
|
||||||
|
def updateDuplicatesStatusAndLocked(self):
|
||||||
|
""" Update status of duplicate nodes without any latency and update locked. """
|
||||||
|
if self.name == self._chunks.at(0).statusNodeName:
|
||||||
|
for node in self._duplicates:
|
||||||
|
node.updateStatusFromCache()
|
||||||
|
|
||||||
|
self.updateLocked()
|
||||||
|
|
||||||
def updateLocked(self):
|
def updateLocked(self):
|
||||||
currentStatus = self.getGlobalStatus()
|
currentStatus = self.getGlobalStatus()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue