Skip to content

Commit 41c89b1

Browse files
committed
clean up fix.
1 parent 48a5cf1 commit 41c89b1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

NodeGraphQt/base/commands.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def set_node_property(self, name, value):
3636
# view widgets.
3737
if hasattr(view, 'widgets') and name in view.widgets.keys():
3838
# check if previous value is identical to current value,
39-
# prevent signals from causing a infinite loop.
39+
# prevent signals from causing an infinite loop.
4040
if view.widgets[name].get_value() != value:
4141
view.widgets[name].set_value(value)
4242

NodeGraphQt/qgraphics/node_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1049,7 +1049,7 @@ def has_widget(self, name):
10491049

10501050
def from_dict(self, node_dict):
10511051
super(NodeItem, self).from_dict(node_dict)
1052-
custom_prop = node_dict.pop('custom') or {}
1052+
custom_prop = node_dict.get('custom') or {}
10531053
for prop_name, value in custom_prop.items():
10541054
prop_widget = self._widgets.get(prop_name)
10551055
if prop_widget:

0 commit comments

Comments
 (0)