[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [49483] branches/soc-2008-mxcurioni/ release/scripts/startup/bl_ui/properties_render.py: Fix for Freestyle-related UI components showing up in the Render buttons when Cycles is selected .
Tamito Kajiyama
rd6t-kjym at asahi-net.or.jp
Wed Aug 1 22:14:30 CEST 2012
Revision: 49483
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=49483
Author: kjym3
Date: 2012-08-01 20:14:27 +0000 (Wed, 01 Aug 2012)
Log Message:
-----------
Fix for Freestyle-related UI components showing up in the Render buttons when Cycles is selected.
Modified Paths:
--------------
branches/soc-2008-mxcurioni/release/scripts/startup/bl_ui/properties_render.py
Modified: branches/soc-2008-mxcurioni/release/scripts/startup/bl_ui/properties_render.py
===================================================================
--- branches/soc-2008-mxcurioni/release/scripts/startup/bl_ui/properties_render.py 2012-08-01 19:44:57 UTC (rev 49482)
+++ branches/soc-2008-mxcurioni/release/scripts/startup/bl_ui/properties_render.py 2012-08-01 20:14:27 UTC (rev 49483)
@@ -191,6 +191,8 @@
@classmethod
def poll(cls, context):
rd = context.scene.render
+ if rd.engine not in cls.COMPAT_ENGINES:
+ return False
rl = rd.layers.active
return rl and rl.use_freestyle
@@ -264,6 +266,8 @@
@classmethod
def poll(cls, context):
rd = context.scene.render
+ if rd.engine not in cls.COMPAT_ENGINES:
+ return False
rl = rd.layers.active
if rl and rl.use_freestyle:
freestyle = rl.freestyle_settings
@@ -350,6 +354,8 @@
@classmethod
def poll(cls, context):
rd = context.scene.render
+ if rd.engine not in cls.COMPAT_ENGINES:
+ return False
rl = rd.layers.active
if rl and rl.use_freestyle:
freestyle = rl.freestyle_settings
More information about the Bf-blender-cvs
mailing list