2.5: hide indirect light panel for raytrace, it does nothing.
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Sun, 18 Jul 2010 10:58:41 +0000 (10:58 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Sun, 18 Jul 2010 10:58:41 +0000 (10:58 +0000)
release/scripts/ui/properties_world.py

index e63d513..22acd49 100644 (file)
@@ -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="")