You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the layout direction in a node is changed to vertical, then duplicating that node causes a strange behavior. For example, consider node_a in vertical layout. Then use the NodeGraph.duplicate_nodes() method to duplicate it. The result: The duplicated node and the original node (node_a) are both in horizontal layout.
I think the problem may be in one of the NodeGraph._serialize() or NodeGraph._deserialize() methods. I've been using these methods in my application in order to save and load a graph into/from a file, and have been experiencing some errors with layout directions.
If the layout direction in a node is changed to vertical, then duplicating that node causes a strange behavior. For example, consider
node_a
in vertical layout. Then use theNodeGraph.duplicate_nodes()
method to duplicate it. The result: The duplicated node and the original node (node_a
) are both in horizontal layout.Basic example case:
I think the problem may be in one of the
NodeGraph._serialize()
orNodeGraph._deserialize()
methods. I've been using these methods in my application in order to save and load a graph into/from a file, and have been experiencing some errors with layout directions.Regards.
NodeGraphQt version: 0.6.29
Qt.py version: 1.3.7
PySide2 version: 5.15.2.1
Python version: 3.9.2
The text was updated successfully, but these errors were encountered: