Skip to content

Commit 0a9df7f

Browse files
authored
Merge pull request #364 from jchanvfx/serlize_session_bugfix_#363
Serialize session bugfix #363
2 parents 7732724 + 2e0fef4 commit 0a9df7f

File tree

4 files changed

+13
-6
lines changed

4 files changed

+13
-6
lines changed

NodeGraphQt/base/model.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -537,9 +537,9 @@ def add_port_accept_connection_type(
537537
connection_data = connection_data[key]
538538

539539
if accept_ptype not in connection_data:
540-
connection_data[accept_ptype] = set([accept_pname])
540+
connection_data[accept_ptype] = [accept_pname]
541541
else:
542-
connection_data[accept_ptype].add(accept_pname)
542+
connection_data[accept_ptype].append(accept_pname)
543543

544544
def port_accept_connection_types(self, node_type, port_type, port_name):
545545
"""
@@ -582,9 +582,9 @@ def add_port_reject_connection_type(
582582
connection_data = connection_data[key]
583583

584584
if reject_ptype not in connection_data:
585-
connection_data[reject_ptype] = set([reject_pname])
585+
connection_data[reject_ptype] = [reject_pname]
586586
else:
587-
connection_data[reject_ptype].add(reject_pname)
587+
connection_data[reject_ptype].append(reject_pname)
588588

589589
def port_reject_connection_types(self, node_type, port_type, port_name):
590590
"""

NodeGraphQt/pkg_info.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/python
22
# -*- coding: utf-8 -*-
3-
__version__ = '0.6.11'
3+
__version__ = '0.6.12'
44
__status__ = 'Work in Progress'
55
__license__ = 'MIT'
66

examples/hotkeys/hotkey_functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def save_session_as(graph):
8686
graph.save_session(file_path)
8787

8888

89-
def new_session(graph):
89+
def clear_session(graph):
9090
"""
9191
Prompts a warning dialog to new a node graph session.
9292
"""

examples/hotkeys/hotkeys.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@
1717
"function_name":"import_session",
1818
"shortcut":""
1919
},
20+
{
21+
"type":"command",
22+
"label":"Clear Session...",
23+
"file":"../examples/hotkeys/hotkey_functions.py",
24+
"function_name":"clear_session",
25+
"shortcut":""
26+
},
2027
{
2128
"type":"command",
2229
"label":"Save...",

0 commit comments

Comments
 (0)