Skip to content

Commit 8fdcb0c

Browse files
committed
update AutoNode disable function
1 parent 80c7dc8 commit 8fdcb0c

File tree

5 files changed

+251
-251
lines changed

5 files changed

+251
-251
lines changed

NodeGraphQt/base/graph.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -380,9 +380,7 @@ def widget(self):
380380
@property
381381
def auto_update(self):
382382
"""
383-
384-
Returns:
385-
if the graph can run node automatically.
383+
Returns weather the graph can run node automatically.
386384
"""
387385
return self._auto_update
388386

@@ -1149,7 +1147,7 @@ def _deserialize(self, data, relative_pos=False, pos=None, set_parent=True):
11491147
node.model.set_property(prop, val)
11501148
nodes[n_id] = node
11511149
self.add_node(node, n_data.get('pos'), unique_name=set_parent)
1152-
1150+
node.set_disabled(n_data.get('disabled', False))
11531151
if isinstance(node, SubGraph):
11541152
if n_data.get('custom', None):
11551153
published = n_data['custom'].get('published', False)

NodeGraphQt/base/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def set_property(self, name, value):
153153
elif name in self._custom_prop.keys():
154154
self._custom_prop[name] = value
155155
else:
156-
self._custom_prop[name] = value
156+
self.add_property(name, value)
157157
# raise NodePropertyError('No property "{}"'.format(name))
158158

159159
def get_property(self, name):

0 commit comments

Comments
 (0)