소스 검색

Fix: silence annoying warning from menu poll

Joseph Brandenburg 2 달 전
부모
커밋
d50a756782
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      menu_classes.py

+ 2 - 0
menu_classes.py

@@ -33,6 +33,8 @@ class MantisActiveTreePanel(Panel):
         spc = area.spaces[0]
         if spc.type != "NODE_EDITOR":
             return False
+        if not spc.node_tree:
+            return False
         if spc.node_tree.bl_idname != "MantisTree":
             return False
         return True