Explorar el Código

Fix: silence annoying warning from menu poll

Joseph Brandenburg hace 2 meses
padre
commit
d50a756782
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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