mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-18 03:26:30 +02:00
Add nodes computed in renderfarm to Taksmanager on open scene
This commit is contained in:
parent
3c32aaeecd
commit
5aea330400
2 changed files with 13 additions and 1 deletions
|
@ -551,6 +551,9 @@ class BaseNode(BaseObject):
|
|||
def alreadySubmittedChunks(self):
|
||||
return [ch for ch in self._chunks if ch.isAlreadySubmitted()]
|
||||
|
||||
def isExtern(self):
|
||||
return self._chunks.at(0).isExtern()
|
||||
|
||||
@Slot()
|
||||
def clearSubmittedChunks(self):
|
||||
""" Reset all submitted chunks to Status.NONE. This method should be used to clear inconsistent status
|
||||
|
|
|
@ -155,7 +155,16 @@ class TaskManager(BaseObject):
|
|||
self._nodesExtern = []
|
||||
self._nodesToProcess = []
|
||||
|
||||
|
||||
def update(self, graph):
|
||||
"""
|
||||
Add all the nodes that are being rendered in a renderfarm to the taskmanager when new graph is loaded
|
||||
:param graph:
|
||||
:return:
|
||||
"""
|
||||
for node in graph._nodes:
|
||||
if node.isAlreadySubmitted() and node._chunks.size() > 0 and node.isExtern():
|
||||
self._nodes.add(node)
|
||||
self._nodesExtern.append(node)
|
||||
|
||||
def submit(self, graph=None, submitter=None, toNodes=None):
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue