Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2010-07-18 14:58:41 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2010-07-18 14:58:41 +0400
commit0a34050e90e76ac5ee8c17987884190344c83d38 (patch)
tree941ed51d34cef5f3588853800ef53199bb7d1c48
parent82e7d6d33241e73e196f057e2b12c83f856ede98 (diff)
2.5: hide indirect light panel for raytrace, it does nothing.
-rw-r--r--release/scripts/ui/properties_world.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/release/scripts/ui/properties_world.py b/release/scripts/ui/properties_world.py
index e63d513a4b5..22acd49f897 100644
--- a/release/scripts/ui/properties_world.py
+++ b/release/scripts/ui/properties_world.py
@@ -205,6 +205,10 @@ class WORLD_PT_indirect_lighting(WorldButtonsPanel):
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="")