[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [30463] trunk/blender/release/scripts/ui/ properties_world.py: 2.5: hide indirect light panel for raytrace, it does nothing.
Brecht Van Lommel
brecht at blender.org
Sun Jul 18 12:58:41 CEST 2010
Revision: 30463
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=30463
Author: blendix
Date: 2010-07-18 12:58:41 +0200 (Sun, 18 Jul 2010)
Log Message:
-----------
2.5: hide indirect light panel for raytrace, it does nothing.
Modified Paths:
--------------
trunk/blender/release/scripts/ui/properties_world.py
Modified: trunk/blender/release/scripts/ui/properties_world.py
===================================================================
--- trunk/blender/release/scripts/ui/properties_world.py 2010-07-18 08:19:44 UTC (rev 30462)
+++ trunk/blender/release/scripts/ui/properties_world.py 2010-07-18 10:58:41 UTC (rev 30463)
@@ -205,6 +205,10 @@
bl_label = "Indirect Lighting"
COMPAT_ENGINES = {'BLENDER_RENDER'}
+ def poll(self, context):
+ light = context.world.lighting
+ return light.gather_method == 'APPROXIMATE'
+
def draw_header(self, context):
light = context.world.lighting
self.layout.prop(light, "use_indirect_lighting", text="")
More information about the Bf-blender-cvs
mailing list