Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-12-19 14:36:33 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-12-19 14:45:36 +0300
commit2af0ec9457b2997e1e903f284dd48bae6534682b (patch)
tree863b1befb6caecc590187ed8ed855e895ae819a4 /source
parent25fcb44d2db2837b611aefb43207fc011b68a34a (diff)
UI: move gizmo orientation settings into popover
Instead of link toggle with enum, use a single popover that contains both settings. The code for this isn't nice - needing 3x panels for now. See D4075
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/transform/transform_gizmo_3d.c4
-rw-r--r--source/blender/makesrna/intern/rna_scene.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/transform/transform_gizmo_3d.c b/source/blender/editors/transform/transform_gizmo_3d.c
index b17a345ee09..3680c8c829c 100644
--- a/source/blender/editors/transform/transform_gizmo_3d.c
+++ b/source/blender/editors/transform/transform_gizmo_3d.c
@@ -1242,10 +1242,10 @@ static void gizmo_xform_message_subscribe(
RNA_pointer_create(&scene->id, &RNA_TransformOrientationSlot, orient_slot, &orient_ref_ptr);
{
extern PropertyRNA rna_TransformOrientationSlot_type;
- extern PropertyRNA rna_TransformOrientationSlot_use;
+ extern PropertyRNA rna_TransformOrientationSlot_use_global;
const PropertyRNA *props[] = {
&rna_TransformOrientationSlot_type,
- &rna_TransformOrientationSlot_use,
+ &rna_TransformOrientationSlot_use_global,
};
for (int i = 0; i < ARRAY_SIZE(props); i++) {
if (props[i]) {
diff --git a/source/blender/makesrna/intern/rna_scene.c b/source/blender/makesrna/intern/rna_scene.c
index 3a8cfbff3a1..8a3c328f131 100644
--- a/source/blender/makesrna/intern/rna_scene.c
+++ b/source/blender/makesrna/intern/rna_scene.c
@@ -2237,9 +2237,9 @@ static void rna_def_transform_orientation_slot(BlenderRNA *brna)
RNA_def_property_ui_text(prop, "Current Transform Orientation", "");
/* flag */
- prop = RNA_def_property(srna, "use", PROP_BOOLEAN, PROP_NONE);
+ prop = RNA_def_property(srna, "use_global", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_negative_sdna(prop, NULL, "flag", SELECT);
- RNA_def_property_ui_text(prop, "Use", "Disable to unlink the orientation from the scene-setting");
+ RNA_def_property_ui_text(prop, "Use", "Use scene orientation instead of a custom setting");
RNA_def_property_update(prop, NC_SCENE | ND_TOOLSETTINGS, NULL);
FunctionRNA *func;