[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [32897] trunk/blender/release/scripts/ui/ properties_world.py: Do not hide the Indirect Lighting tab, caused some confusion.
Thomas Dinges
dingto at gmx.de
Sat Nov 6 22:37:11 CET 2010
Revision: 32897
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=32897
Author: dingto
Date: 2010-11-06 22:37:11 +0100 (Sat, 06 Nov 2010)
Log Message:
-----------
Do not hide the Indirect Lighting tab, caused some confusion.
Now print an info that Indirect Light only works with Approximate in Trunk atm.
If someone knows a better solution, feel free to change.
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-11-06 21:32:58 UTC (rev 32896)
+++ trunk/blender/release/scripts/ui/properties_world.py 2010-11-06 21:37:11 UTC (rev 32897)
@@ -142,7 +142,7 @@
@classmethod
def poll(cls, context):
light = getattr(context.world, "light_settings", None)
- return light and light.gather_method == 'APPROXIMATE'
+ return light
def draw_header(self, context):
light = context.world.light_settings
@@ -152,11 +152,14 @@
layout = self.layout
light = context.world.light_settings
- layout.active = light.use_indirect_light
+ layout.active = light.use_indirect_light and light.gather_method == 'APPROXIMATE'
split = layout.split()
split.prop(light, "indirect_factor", text="Factor")
split.prop(light, "indirect_bounces", text="Bounces")
+
+ if light.gather_method == 'RAYTRACE':
+ layout.label(text="Only works with Approximate gather method")
class WORLD_PT_gather(WorldButtonsPanel, bpy.types.Panel):
More information about the Bf-blender-cvs
mailing list