From b3627b58acd5a564f46075e2a5bf2ba8a455cbd8 Mon Sep 17 00:00:00 2001 From: Quackarooni Date: Thu, 23 Mar 2023 21:30:28 +0800 Subject: [PATCH] Cleanup : Added proper labels for merging shader nodes The UI for the 'Use Shaders' menu under 'Merge Selected' is currently displaying internal names 'MIX' and 'AND'. This commit changes the menu text to be more reflective of the relevant node names. --- node_wrangler/interface.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/node_wrangler/interface.py b/node_wrangler/interface.py index 5c477dcc4..4c4010b3e 100644 --- a/node_wrangler/interface.py +++ b/node_wrangler/interface.py @@ -146,7 +146,8 @@ class NWMergeShadersMenu(Menu, NWBase): def draw(self, context): layout = self.layout for type in ('MIX', 'ADD'): - props = layout.operator(operators.NWMergeNodes.bl_idname, text=type) + name = f'{type.capitalize()} Shader' + props = layout.operator(operators.NWMergeNodes.bl_idname, text=name) props.mode = type props.merge_type = 'SHADER' -- 2.30.2