[Bf-blender-cvs] [c6d1eaa] master: Cycles: use COMPAT_ENGINES mechanism for UI panels.

Jonas Eschenburg noreply at git.blender.org
Sun Feb 9 13:57:43 CET 2014


Commit: c6d1eaa3b203d7a61952d48647c48d148bed9091
Author: Jonas Eschenburg
Date:   Sun Feb 9 13:53:58 2014 +0100
https://developer.blender.org/rBc6d1eaa3b203d7a61952d48647c48d148bed9091

Cycles: use COMPAT_ENGINES mechanism for UI panels.

This way addons like network renderers can more easily reuse them.

Reviewed By: brecht

===================================================================

M	intern/cycles/blender/addon/ui.py

===================================================================

diff --git a/intern/cycles/blender/addon/ui.py b/intern/cycles/blender/addon/ui.py
index 55322fe..3217a96 100644
--- a/intern/cycles/blender/addon/ui.py
+++ b/intern/cycles/blender/addon/ui.py
@@ -41,11 +41,12 @@ class CyclesButtonsPanel():
     bl_space_type = "PROPERTIES"
     bl_region_type = "WINDOW"
     bl_context = "render"
+    COMPAT_ENGINES = {'CYCLES'}
 
     @classmethod
     def poll(cls, context):
         rd = context.scene.render
-        return rd.engine == 'CYCLES'
+        return rd.engine in cls.COMPAT_ENGINES
 
 
 def draw_samples_info(layout, cscene):




More information about the Bf-blender-cvs mailing list