fix exception in DataTreeWidget when clicking on a node with multivalue Terminal connected
This commit is contained in:
parent
9fdaffaf7d
commit
a8417b6478
@ -267,6 +267,11 @@ class Terminal(object):
|
|||||||
def saveState(self):
|
def saveState(self):
|
||||||
return {'io': self._io, 'multi': self._multi, 'optional': self._optional, 'renamable': self._renamable, 'removable': self._removable, 'multiable': self._multiable}
|
return {'io': self._io, 'multi': self._multi, 'optional': self._optional, 'renamable': self._renamable, 'removable': self._removable, 'multiable': self._multiable}
|
||||||
|
|
||||||
|
def __lt__(self, other):
|
||||||
|
"""When the terminal is multi value, the data passed to the DatTreeWidget for each input or output, is {Terminal: value}.
|
||||||
|
To make this sortable, we provide the < operator.
|
||||||
|
"""
|
||||||
|
return self._name < other._name
|
||||||
|
|
||||||
class TerminalGraphicsItem(GraphicsObject):
|
class TerminalGraphicsItem(GraphicsObject):
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user