Showing Clay collection settings when clay is the workspace not the scene engine
This commit is contained in:
parent
9ab67fd31b
commit
4de8e12ada
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue