[Bf-cycles] Cycles panels on other rendering engines

Jonas Eschenburg indyjo at gmx.de
Fri Feb 7 23:20:04 CET 2014


Hi,

I'd like to propose a change to the Cycles panels. I'd like to make them 
available to another rendering engine (a network rendering engine acting 
as a proxy for Cycles) and they don't use the same mechanism as most 
other panels, namely COMPAT_ENGINES.

The attached patch changes this, so my own engine can use Cycles' panels 
(especially "sampling" and "light paths"), too.

Jonas
-------------- next part --------------
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-cycles mailing list