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

Dalai Felinto noreply at git.blender.org
Wed Sep 13 19:16:09 CEST 2017


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

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