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:
Diffstat (limited to 'release/scripts/ui/properties_world.py')
-rw-r--r--release/scripts/ui/properties_world.py14
1 files changed, 8 insertions, 6 deletions
diff --git a/release/scripts/ui/properties_world.py b/release/scripts/ui/properties_world.py
index 4f662df8cc8..b23a0dffbad 100644
--- a/release/scripts/ui/properties_world.py
+++ b/release/scripts/ui/properties_world.py
@@ -35,7 +35,7 @@ class WorldButtonsPanel(bpy.types.Panel):
class WORLD_PT_preview(WorldButtonsPanel):
bl_label = "Preview"
- COMPAT_ENGINES = set(['BLENDER_RENDER'])
+ COMPAT_ENGINES = {'BLENDER_RENDER'}
def draw(self, context):
self.layout.template_preview(context.world)
@@ -44,7 +44,7 @@ class WORLD_PT_preview(WorldButtonsPanel):
class WORLD_PT_context_world(WorldButtonsPanel):
bl_label = ""
bl_show_header = False
- COMPAT_ENGINES = set(['BLENDER_RENDER'])
+ COMPAT_ENGINES = {'BLENDER_RENDER'}
def poll(self, context):
rd = context.scene.render_data
@@ -71,7 +71,7 @@ class WORLD_PT_context_world(WorldButtonsPanel):
class WORLD_PT_world(WorldButtonsPanel):
bl_label = "World"
- COMPAT_ENGINES = set(['BLENDER_RENDER'])
+ COMPAT_ENGINES = {'BLENDER_RENDER'}
def draw(self, context):
layout = self.layout
@@ -99,7 +99,7 @@ class WORLD_PT_world(WorldButtonsPanel):
class WORLD_PT_mist(WorldButtonsPanel):
bl_label = "Mist"
- COMPAT_ENGINES = set(['BLENDER_RENDER'])
+ COMPAT_ENGINES = {'BLENDER_RENDER'}
def draw_header(self, context):
world = context.world
@@ -129,7 +129,7 @@ class WORLD_PT_mist(WorldButtonsPanel):
class WORLD_PT_stars(WorldButtonsPanel):
bl_label = "Stars"
- COMPAT_ENGINES = set(['BLENDER_RENDER'])
+ COMPAT_ENGINES = {'BLENDER_RENDER'}
def draw_header(self, context):
world = context.world
@@ -157,7 +157,7 @@ class WORLD_PT_stars(WorldButtonsPanel):
class WORLD_PT_ambient_occlusion(WorldButtonsPanel):
bl_label = "Ambient Occlusion"
- COMPAT_ENGINES = set(['BLENDER_RENDER'])
+ COMPAT_ENGINES = {'BLENDER_RENDER'}
def draw_header(self, context):
world = context.world
@@ -219,10 +219,12 @@ class WORLD_PT_ambient_occlusion(WorldButtonsPanel):
col = split.column()
col.prop(ao, "energy")
+ col.prop(ao, "indirect_energy")
if wide_ui:
col = split.column()
col.prop(ao, "color")
+ col.prop(ao, "indirect_bounces")
bpy.types.register(WORLD_PT_context_world)
bpy.types.register(WORLD_PT_preview)