Shows all Cycles panels based on scene, not context engine

This is tricky since we may want granular polling depending on the setting.
Or an option to pick whether we want the context or the scene to drive the
panels to prevent too many panels when mixing Eevee and Cycles for example.
This commit is contained in:
Dalai Felinto 2017-11-21 13:16:24 -02:00
parent a80b74ab0d
commit ff810f08d8
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ class CyclesButtonsPanel:
@classmethod
def poll(cls, context):
return context.engine in cls.COMPAT_ENGINES
return context.scene.view_render.engine in cls.COMPAT_ENGINES
def get_device_type(context):