Skip to content

Commit 4631cd0

Browse files
Merge pull request #46 from SpectralVectors/actions/black
Format Python code with psf/black push
2 parents aebebe0 + e3f3459 commit 4631cd0

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

RightMouseNavigation.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,15 @@ def callMenu(self, context):
102102
if space_type == "NODE_EDITOR":
103103
node_tree = context.space_data.node_tree
104104
if node_tree:
105-
if node_tree.nodes.active is not None and node_tree.nodes.active.select:
105+
if (
106+
node_tree.nodes.active is not None
107+
and node_tree.nodes.active.select
108+
):
106109
bpy.ops.wm.call_menu(name="NODE_MT_context_menu")
107110
else:
108-
bpy.ops.wm.search_single_menu("INVOKE_DEFAULT", menu_idname="NODE_MT_add")
111+
bpy.ops.wm.search_single_menu(
112+
"INVOKE_DEFAULT", menu_idname="NODE_MT_add"
113+
)
109114
else:
110115
try:
111116
bpy.ops.wm.call_menu(name=self.menu_by_mode[context.mode])

0 commit comments

Comments
 (0)