Fix T62685: Rename 'Align' to 'Only Origins'
authorCampbell Barton <ideasman42@gmail.com>
Mon, 18 Mar 2019 02:28:00 +0000 (13:28 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 18 Mar 2019 02:30:16 +0000 (13:30 +1100)
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
source/blender/makesrna/intern/rna_scene.c

index d0e278aee7d89cb57ace7ceebf36838892e0f29a..5e535b7c90c9dc699afe33a6370d3b9b40be72c0 100644 (file)
@@ -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):
index 725f9ed1a5f94c8e91dd040f213acc7b9d7f1bad..080b29fa7a9f178e50f2481f2f7b52211d558e99 100644 (file)
@@ -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);