Skip to content

Commit cf9cbec

Browse files
Merge pull request #37 from SpectralVectors/actions/black
Format Python code with psf/black push
2 parents 5e4ebc2 + c87c1f6 commit cf9cbec

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

RightMouseNavigation.py

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

__init__.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,7 @@ def register():
5353
# "Vertex Paint", "Weight Paint", "Image Paint", "Sculpt"
5454
for i in panelmodes:
5555
for key in active_kc.keymaps[i].keymap_items:
56-
if (
57-
key.idname == "wm.call_panel"
58-
and key.type == "RIGHTMOUSE"
59-
and key.active
60-
):
56+
if key.idname == "wm.call_panel" and key.type == "RIGHTMOUSE" and key.active:
6157
key.active = False
6258

6359
# Changing the Walk Modal Map

0 commit comments

Comments
 (0)