[Bf-blender-cvs] [cb259dc0442] temp-workspace-changes: Fix engine context in Cycles

Dalai Felinto noreply at git.blender.org
Thu Sep 14 12:10:08 CEST 2017


Commit: cb259dc044230d60ef81c62d1ea26733cbce188c
Author: Dalai Felinto
Date:   Wed Sep 13 18:21:42 2017 +0200
Branches: temp-workspace-changes
https://developer.blender.org/rBcb259dc044230d60ef81c62d1ea26733cbce188c

Fix engine context in Cycles

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

M	intern/cycles/app/io_export_cycles_xml.py

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

diff --git a/intern/cycles/app/io_export_cycles_xml.py b/intern/cycles/app/io_export_cycles_xml.py
index 7d6d85f88af..d02487aefa4 100644
--- a/intern/cycles/app/io_export_cycles_xml.py
+++ b/intern/cycles/app/io_export_cycles_xml.py
@@ -66,8 +66,7 @@ class RenderButtonsPanel():
 
     @classmethod
     def poll(self, context):
-        rd = context.scene.render
-        return rd.engine == 'CYCLES'
+        return context.engine == 'CYCLES'
 
 
 class PHYSICS_PT_fluid_export(RenderButtonsPanel, bpy.types.Panel):



More information about the Bf-blender-cvs mailing list