Showing Clay collection settings when clay is the workspace not the scene engine

This commit is contained in:
Dalai Felinto 2017-10-27 11:25:56 -02:00
parent 9ab67fd31b
commit 4de8e12ada
1 changed files with 1 additions and 2 deletions

View 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