[ui] qml warning fix by using directly the edge object instead of the property

This commit is contained in:
Fabien Castan 2020-03-10 10:42:35 +01:00
parent d001cc9e73
commit 76fd327fde

View file

@ -151,7 +151,8 @@ class Attribute(BaseObject):
@property
def isLink(self):
""" Whether the attribute is a link to another attribute. """
return self.node.graph and self.isInput and self in self.node.graph.edges.keys()
# 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 in self.node.graph._edges.keys()
@staticmethod
def isLinkExpression(value):