mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-07-25 04:27:19 +02:00
[ui] GraphEditor: fix some readOnly regarding CompatibilityNodes
This commit is contained in:
parent
382e350bcd
commit
078120696a
4 changed files with 14 additions and 4 deletions
|
@ -865,6 +865,9 @@ class BaseNode(BaseObject):
|
|||
fusedStatus.merge(node.fusedStatus)
|
||||
return fusedStatus
|
||||
|
||||
def _isCompatibilityNode(self):
|
||||
return False
|
||||
|
||||
@property
|
||||
def globalExecMode(self):
|
||||
return self._chunks.at(0).execModeName
|
||||
|
@ -1031,6 +1034,7 @@ class BaseNode(BaseObject):
|
|||
fusedStatus = Property(StatusData, getFusedStatus, notify=globalStatusChanged)
|
||||
elapsedTime = Property(float, lambda self: self.getFusedStatus().elapsedTime, notify=globalStatusChanged)
|
||||
recursiveElapsedTime = Property(float, lambda self: self.getRecursiveFusedStatus().elapsedTime, notify=globalStatusChanged)
|
||||
isCompatibilityNode = Property(bool, lambda self: self._isCompatibilityNode(), constant=True) # need lambda to evaluate the virtual function
|
||||
|
||||
globalExecModeChanged = Signal()
|
||||
globalExecMode = Property(str, globalExecMode.fget, notify=globalExecModeChanged)
|
||||
|
@ -1167,6 +1171,9 @@ class CompatibilityNode(BaseNode):
|
|||
for i in range(self.splitCount)
|
||||
])
|
||||
|
||||
def _isCompatibilityNode(self):
|
||||
return True
|
||||
|
||||
@staticmethod
|
||||
def attributeDescFromValue(attrName, value, isOutput):
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue