Skip to content

Commit 0c486f9

Browse files
Merge pull request #43 from SpectralVectors/actions/black
Format Python code with psf/black push
2 parents c161511 + d41227e commit 0c486f9

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
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])

__init__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,11 @@ def register():
5454
# "Vertex Paint", "Weight Paint", "Image Paint", "Sculpt"
5555
for i in panelmodes:
5656
for key in active_kc.keymaps[i].keymap_items:
57-
if key.idname == "wm.call_panel" and key.type == "RIGHTMOUSE" and key.active:
57+
if (
58+
key.idname == "wm.call_panel"
59+
and key.type == "RIGHTMOUSE"
60+
and key.active
61+
):
5862
key.active = False
5963

6064
# Changing the Walk Modal Map

0 commit comments

Comments
 (0)