Skip to content

Commit

Permalink
bug fix for #271
Browse files Browse the repository at this point in the history
  • Loading branch information
jchanvfx committed Oct 9, 2022
1 parent 7f54b5c commit 239b174
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions NodeGraphQt/base/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -1379,8 +1379,9 @@ def _deserialize(self, data, relative_pos=False, pos=None):
# set custom properties.
for prop, val in n_data.get('custom', {}).items():
node.model.set_property(prop, val)
if prop in node.view.widgets:
node.view.widgets[prop].set_value(val)
if isinstance(node, BaseNode):
if prop in node.view.widgets:
node.view.widgets[prop].set_value(val)

nodes[n_id] = node
self.add_node(node, n_data.get('pos'))
Expand Down

0 comments on commit 239b174

Please sign in to comment.