From 53380ed8b2fc032d2bfe0ecc767c3ddb39f61d61 Mon Sep 17 00:00:00 2001 From: Habib Gahbiche Date: Fri, 1 Aug 2025 13:38:54 +0200 Subject: [PATCH] Cleanup: redundant check for shader type Pull Request: https://projects.blender.org/blender/blender/pulls/143784 --- intern/cycles/blender/addon/ui.py | 2 +- scripts/startup/bl_ui/space_node.py | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/intern/cycles/blender/addon/ui.py b/intern/cycles/blender/addon/ui.py index fde2d6aa610..c22a2c4c008 100644 --- a/intern/cycles/blender/addon/ui.py +++ b/intern/cycles/blender/addon/ui.py @@ -1456,7 +1456,7 @@ class CYCLES_OBJECT_PT_visibility_culling(CyclesButtonsPanel, Panel): def panel_node_draw(layout, id_data, output_type, input_name): from bpy_extras.node_utils import find_node_input - if not isinstance(id_data, bpy.types.World) and not id_data.use_nodes: + if output_type != 'OUTPUT_WORLD' and not id_data.use_nodes: layout.operator("cycles.use_shading_nodes", icon='NODETREE') return False diff --git a/scripts/startup/bl_ui/space_node.py b/scripts/startup/bl_ui/space_node.py index 3094ac9824f..b9aa50f6dc3 100644 --- a/scripts/startup/bl_ui/space_node.py +++ b/scripts/startup/bl_ui/space_node.py @@ -99,9 +99,6 @@ class NODE_HT_header(Header): if snode_id: row = layout.row() - if snode.shader_type != 'WORLD': - row.prop(snode_id, "use_nodes") - if world and world.use_eevee_finite_volume: row.operator("world.convert_volume_to_mesh", emboss=False, icon='WORLD', text="Convert Volume")