diff options
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_world.py')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_world.py | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/properties_world.py b/release/scripts/startup/bl_ui/properties_world.py index e419f8d1df3..1f0cbe35689 100644 --- a/release/scripts/startup/bl_ui/properties_world.py +++ b/release/scripts/startup/bl_ui/properties_world.py @@ -20,6 +20,7 @@ import bpy from bpy.types import Panel from rna_prop_ui import PropertyPanel +from bpy_extras.node_utils import find_node_input, find_output_node class WorldButtonsPanel: @@ -264,7 +265,20 @@ class EEVEE_WORLD_PT_surface(WorldButtonsPanel, Panel): world = context.world - layout.prop(world, "horizon_color", text="Color") + layout.prop(world, "use_nodes", icon='NODETREE') + layout.separator() + + if world.use_nodes: + ntree = world.node_tree + node = find_output_node(ntree, 'OUTPUT_WORLD') + + if not node: + layout.label(text="No output node") + else: + input = find_node_input(node, 'Surface') + layout.template_node_view(ntree, node, input) + else: + layout.prop(world, "horizon_color", text="Color") classes = ( |