Skip to content

Commit

Permalink
clean up fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
jchanvfx committed Jan 23, 2024
1 parent 48a5cf1 commit 41c89b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion NodeGraphQt/base/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def set_node_property(self, name, value):
# view widgets.
if hasattr(view, 'widgets') and name in view.widgets.keys():
# check if previous value is identical to current value,
# prevent signals from causing a infinite loop.
# prevent signals from causing an infinite loop.
if view.widgets[name].get_value() != value:
view.widgets[name].set_value(value)

Expand Down
2 changes: 1 addition & 1 deletion NodeGraphQt/qgraphics/node_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1049,7 +1049,7 @@ def has_widget(self, name):

def from_dict(self, node_dict):
super(NodeItem, self).from_dict(node_dict)
custom_prop = node_dict.pop('custom') or {}
custom_prop = node_dict.get('custom') or {}
for prop_name, value in custom_prop.items():
prop_widget = self._widgets.get(prop_name)
if prop_widget:
Expand Down

0 comments on commit 41c89b1

Please sign in to comment.