Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDalai Felinto <dfelinto@gmail.com>2017-11-21 18:16:24 +0300
committerDalai Felinto <dfelinto@gmail.com>2017-11-21 18:19:36 +0300
commitff810f08d8670b3d016e865e9b32df44c270ddaa (patch)
tree6ec207744981f357981280719f9a0b768b73101e
parenta80b74ab0decc95f4e6ca69c7af60f8a28868645 (diff)
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.
-rw-r--r--intern/cycles/blender/addon/ui.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/blender/addon/ui.py b/intern/cycles/blender/addon/ui.py
index af16de70a46..537303035b3 100644
--- a/intern/cycles/blender/addon/ui.py
+++ b/intern/cycles/blender/addon/ui.py
@@ -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):