[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:
Aurore LAFAURIE 2024-03-25 17:58:56 +01:00 committed by Candice Bentéjac
parent 6f1ac9a06e
commit 1b55dc8649
5 changed files with 13 additions and 5 deletions

View file

@ -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()