Showing Clay collection settings when clay is the workspace not the scene engine
authorDalai Felinto <dfelinto@gmail.com>
Fri, 27 Oct 2017 13:25:56 +0000 (11:25 -0200)
committerDalai Felinto <dfelinto@gmail.com>
Fri, 27 Oct 2017 13:25:58 +0000 (11:25 -0200)
release/scripts/startup/bl_ui/properties_collection.py

index ae61dc2b74ffd5017ddfbf149457015ccadab4c7..dab9def37f4f0f4498ffbb32e7785bac5452483b 100644 (file)
@@ -49,8 +49,7 @@ class COLLECTION_PT_clay_settings(CollectionButtonsPanel, Panel):
 
     @classmethod
     def poll(cls, context):
-        scene = context.scene
-        return scene and (scene.view_render.engine in cls.COMPAT_ENGINES)
+        return context.view_render.engine in cls.COMPAT_ENGINES
 
     def draw(self, context):
         layout = self.layout