mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-02 08:18:25 +02:00
Merge branch 'develop' of github.com:alicevision/meshroom into dev_depthMapOptim
This commit is contained in:
commit
5569b8551e
28 changed files with 1384 additions and 253 deletions
|
@ -359,13 +359,14 @@ class DynamicNodeSize(object):
|
|||
|
||||
def computeSize(self, node):
|
||||
param = node.attribute(self._param)
|
||||
assert param.isInput
|
||||
# Link: use linked node's size
|
||||
if param.isLink:
|
||||
return param.getLinkParam().node.size
|
||||
# ListAttribute: use list size
|
||||
if isinstance(param.desc, ListAttribute):
|
||||
return len(param)
|
||||
if isinstance(param.desc, IntParam):
|
||||
return param.value
|
||||
return 1
|
||||
|
||||
|
||||
|
@ -424,7 +425,26 @@ class Node(object):
|
|||
def __init__(self):
|
||||
pass
|
||||
|
||||
def updateInternals(self, node):
|
||||
@classmethod
|
||||
def update(cls, node):
|
||||
""" Method call before node's internal update on invalidation.
|
||||
|
||||
Args:
|
||||
node: the BaseNode instance being updated
|
||||
See Also:
|
||||
BaseNode.updateInternals
|
||||
"""
|
||||
pass
|
||||
|
||||
@classmethod
|
||||
def postUpdate(cls, node):
|
||||
""" Method call after node's internal update on invalidation.
|
||||
|
||||
Args:
|
||||
node: the BaseNode instance being updated
|
||||
See Also:
|
||||
NodeBase.updateInternals
|
||||
"""
|
||||
pass
|
||||
|
||||
def stopProcess(self, chunk):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue