From e1364b21facb52687d8200676452655636cf4a45 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 18 Mar 2019 13:28:00 +1100 Subject: Fix T62685: Rename 'Align' to 'Only Origins' The RNA name didn't match the name used in the UI, making the quick favourites menu show this as 'Align'. --- release/scripts/startup/bl_ui/space_view3d.py | 8 ++------ source/blender/makesrna/intern/rna_scene.c | 2 +- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py index d0e278aee7d..5e535b7c90c 100644 --- a/release/scripts/startup/bl_ui/space_view3d.py +++ b/release/scripts/startup/bl_ui/space_view3d.py @@ -4166,7 +4166,7 @@ class VIEW3D_MT_pivot_pie(Menu): pie.prop_enum(context.scene.tool_settings, "transform_pivot_point", value='MEDIAN_POINT') pie.prop_enum(context.scene.tool_settings, "transform_pivot_point", value='ACTIVE_ELEMENT') if (obj is None) or (mode in {'OBJECT', 'POSE', 'WEIGHT_PAINT'}): - pie.prop(context.scene.tool_settings, "use_transform_pivot_point_align", text="Only Origins") + pie.prop(context.scene.tool_settings, "use_transform_pivot_point_align") class VIEW3D_MT_orientations_pie(Menu): @@ -5234,11 +5234,7 @@ class VIEW3D_PT_pivot_point(Panel): if (obj is None) or (mode in {'OBJECT', 'POSE', 'WEIGHT_PAINT'}): col.separator() - col.prop( - tool_settings, - "use_transform_pivot_point_align", - text="Only Origins", - ) + col.prop(tool_settings, "use_transform_pivot_point_align") class VIEW3D_PT_snapping(Panel): diff --git a/source/blender/makesrna/intern/rna_scene.c b/source/blender/makesrna/intern/rna_scene.c index 725f9ed1a5f..080b29fa7a9 100644 --- a/source/blender/makesrna/intern/rna_scene.c +++ b/source/blender/makesrna/intern/rna_scene.c @@ -2622,7 +2622,7 @@ static void rna_def_tool_settings(BlenderRNA *brna) prop = RNA_def_property(srna, "use_transform_pivot_point_align", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_sdna(prop, NULL, "transform_flag", SCE_XFORM_AXIS_ALIGN); - RNA_def_property_ui_text(prop, "Align", "Manipulate center points (object, pose and weight paint mode only)"); + RNA_def_property_ui_text(prop, "Only Origins", "Manipulate center points (object, pose and weight paint mode only)"); RNA_def_property_ui_icon(prop, ICON_CENTER_ONLY, 0); RNA_def_property_update(prop, NC_SCENE, NULL); -- cgit v1.2.3