From 3017d88aec7f3f44ba9db930920ac2a51aef750d Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 12 Mar 2019 10:59:57 +1100 Subject: Cleanup: rename specials -> context_menu In keeping with convention to match code & UI naming. - No user visible changes. - Include 'menu' in the name since context is an overloaded term. - While a few of these are panels, from a user perspective they are still context menus. --- release/scripts/startup/bl_ui/space_node.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'release/scripts/startup/bl_ui/space_node.py') diff --git a/release/scripts/startup/bl_ui/space_node.py b/release/scripts/startup/bl_ui/space_node.py index 9ba496b0a44..ca809a07d92 100644 --- a/release/scripts/startup/bl_ui/space_node.py +++ b/release/scripts/startup/bl_ui/space_node.py @@ -312,7 +312,7 @@ class NODE_PT_node_color_presets(PresetMenu): preset_add_operator = "node.node_color_preset_add" -class NODE_MT_node_color_specials(Menu): +class NODE_MT_node_color_context_menu(Menu): bl_label = "Node Color Specials" def draw(self, context): @@ -321,7 +321,7 @@ class NODE_MT_node_color_specials(Menu): layout.operator("node.node_copy_color", icon='COPY_ID') -class NODE_MT_specials(Menu): +class NODE_MT_context_menu(Menu): bl_label = "Node Context Menu" def draw(self, context): @@ -418,7 +418,7 @@ class NODE_PT_active_node_color(Panel): row = layout.row() row.prop(node, "color", text="") - row.menu("NODE_MT_node_color_specials", text="", icon='DOWNARROW_HLT') + row.menu("NODE_MT_node_color_context_menu", text="", icon='DOWNARROW_HLT') class NODE_PT_active_node_properties(Panel): @@ -623,8 +623,8 @@ classes = ( NODE_MT_select, NODE_MT_node, NODE_PT_node_color_presets, - NODE_MT_node_color_specials, - NODE_MT_specials, + NODE_MT_node_color_context_menu, + NODE_MT_context_menu, NODE_PT_active_node_generic, NODE_PT_active_node_color, NODE_PT_active_node_properties, -- cgit v1.2.3