Node Wrangler: Added proper labels for merging shader nodes #104502

Merged
Damien Picard merged 2 commits from quackarooni/blender-addons:nw_fix_merge_shader_labels into main 2023-03-28 02:33:44 +02:00
Showing only changes of commit b3627b58ac - Show all commits

View File

@ -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'