NodeGraphQt icon indicating copy to clipboard operation
NodeGraphQt copied to clipboard

BackdropNode _deserialize bug and fix

Open Soooya opened this issue 2 years ago • 0 comments

When I open a save file containing BackDropNode, following error msg are shown:

Traceback (most recent call last): File ".\Python310\lib\site-packages\nodegraphqt-0.2.2-py3.10.egg\NodeGraphQt\base\graph_actions.py", line 119, in _open_session graph.load_session(file_path) File ".\Python310\lib\site-packages\nodegraphqt-0.2.2-py3.10.egg\NodeGraphQt\base\graph.py", line 1429, in load_session self.import_session(file_path) File ".\Python310\lib\site-packages\nodegraphqt-0.2.2-py3.10.egg\NodeGraphQt\base\graph.py", line 1452, in import_session self._deserialize(layout_data) File ".\Python310\lib\site-packages\nodegraphqt-0.2.2-py3.10.egg\NodeGraphQt\base\graph.py", line 1314, in _deserialize if prop in node.view.widgets: AttributeError: 'BackdropNodeItem' object has no attribute 'widgets'

A temporary fix: add self.widgets = {} in BackdropNodeItem.__init__()

Soooya avatar Jul 22 '22 08:07 Soooya