Skip to content

Commit 9182cb2

Browse files
committed
Don't leak the Malt search menu into other node editors
1 parent 457aeb6 commit 9182cb2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

BlenderMalt/MaltNodes/MaltNodeUITools.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,8 @@ def invoke(self, context, event):
424424
return {'CANCELLED'}
425425

426426
def draw_malt_add_search_menu(menu, context):
427+
if context.area.ui_type != 'MaltTree':
428+
return
427429
layout = menu.layout
428430
if is_malt_tree_context(context) == False:
429431
layout.label(text="No node tree selected", icon='ERROR')

0 commit comments

Comments
 (0)