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:
authorJeroen Bakker <j.bakker@atmind.nl>2018-07-17 13:35:45 +0300
committerJeroen Bakker <j.bakker@atmind.nl>2018-07-17 13:39:03 +0300
commit8d53b72b81212d9d87c71375d299af1dc535b487 (patch)
tree2e60e2207e3ae47d6973183a2340396f5b0fe7b7 /release/scripts/startup/bl_ui/properties_world.py
parent84d4037363b325a279ef87b6b1c430be29984357 (diff)
World: Added 'Viewport Display' panel
The Properties->World tab had no Viewport Display panel. The world color itself was hidden when the 'use_node_tree' was enabled. Also renamed the World.horizon_color to World.color as it has nothing to do with the color of the horizon (old BI feature)
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_world.py')
-rw-r--r--release/scripts/startup/bl_ui/properties_world.py19
1 files changed, 17 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_ui/properties_world.py b/release/scripts/startup/bl_ui/properties_world.py
index b6ea8054b0c..ed1b17a911d 100644
--- a/release/scripts/startup/bl_ui/properties_world.py
+++ b/release/scripts/startup/bl_ui/properties_world.py
@@ -90,7 +90,6 @@ class WORLD_PT_custom_props(WorldButtonsPanel, PropertyPanel, Panel):
class EEVEE_WORLD_PT_surface(WorldButtonsPanel, Panel):
bl_label = "Surface"
- bl_context = "world"
COMPAT_ENGINES = {'BLENDER_EEVEE'}
@classmethod
@@ -119,13 +118,29 @@ class EEVEE_WORLD_PT_surface(WorldButtonsPanel, Panel):
else:
layout.label(text="No output node")
else:
- layout.prop(world, "horizon_color", text="Color")
+ layout.prop(world, "color")
+
+
+class WORLD_PT_viewport_display(WorldButtonsPanel, Panel):
+ bl_label = "Viewport Display"
+ bl_options = {'DEFAULT_CLOSED'}
+
+ @classmethod
+ def poll(cls, context):
+ return context.world
+
+ def draw(self, context):
+ layout = self.layout
+ layout.use_property_split = True
+ world = context.world
+ layout.prop(world, "color")
classes = (
WORLD_PT_context_world,
EEVEE_WORLD_PT_surface,
EEVEE_WORLD_PT_mist,
+ WORLD_PT_viewport_display,
WORLD_PT_custom_props,
)