mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-06-04 11:51:58 +02:00
[ui] Attribute becomes grey in graph editor and attribute editor when connected but disabled
If attribute is disabled but has output connections, it becomes grey. If the connection is removed while being disabled, it hides itself. Both is working in GraphEditor on the nodes and in the AttributeEditor.
This commit is contained in:
parent
6f1ac9a06e
commit
1b55dc8649
5 changed files with 13 additions and 5 deletions
|
@ -251,7 +251,7 @@ class Attribute(BaseObject):
|
|||
|
||||
@property
|
||||
def isLink(self):
|
||||
""" Whether the attribute is a link to another attribute. """
|
||||
""" Whether the input attribute is a link to another attribute. """
|
||||
# note: directly use self.node.graph._edges to avoid using the property that may become invalid at some point
|
||||
return self.node.graph and self.isInput and self.node.graph._edges and self in self.node.graph._edges.keys()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue