Skip to content

Commit 2b2f79e

Browse files
committed
expand group node action fix
1 parent 10a416e commit 2b2f79e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

NodeGraphQt/base/graph.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1839,7 +1839,8 @@ def expand_group_node(self, node):
18391839
Returns:
18401840
SubGraph: sub node graph used to manage the group node session.
18411841
"""
1842-
assert isinstance(node, GroupNode), 'node must be a GroupNode instance.'
1842+
if not isinstance(node, GroupNode):
1843+
return
18431844
if self._widget is None:
18441845
raise RuntimeError('NodeGraph.widget not initialized!')
18451846

NodeGraphQt/base/graph_actions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def build_context_menu(graph):
6969
'Auto Layout Down Stream', _layout_graph_down, 'Ctrl+L')
7070
node_menu.add_separator()
7171
node_menu.add_command(
72-
'Expand Group', _expand_group_node,
72+
'Expand Group Node', _expand_group_node,
7373
QtGui.QKeySequence(QtCore.Qt.ALT + QtCore.Qt.Key_Return))
7474

7575
# "Pipe" menu.

0 commit comments

Comments
 (0)