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-05-22 16:58:48 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-05-22 17:11:39 +0300
commitab196092332e1108b220e1c0c3499f581ee694ae (patch)
treef5bba18cf633b76a329aad7641d5b82ef14eefcb /source
parent53d1ec95ea3d92daaa16221c9daba5da5deb5c0c (diff)
Fix T55069: 3D widget misses pivot-point refresh
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/transform/transform_manipulator_3d.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/transform/transform_manipulator_3d.c b/source/blender/editors/transform/transform_manipulator_3d.c
index 8b635bb26db..27bfb7fcf34 100644
--- a/source/blender/editors/transform/transform_manipulator_3d.c
+++ b/source/blender/editors/transform/transform_manipulator_3d.c
@@ -1131,7 +1131,7 @@ static void manipulator_line_range(const int twtype, const short axis_type, floa
static void manipulator_xform_message_subscribe(
wmManipulatorGroup *mgroup, struct wmMsgBus *mbus,
- Scene *scene, bScreen *screen, ScrArea *sa, ARegion *ar, const void *type_fn)
+ Scene *scene, bScreen *UNUSED(screen), ScrArea *sa, ARegion *ar, const void *type_fn)
{
/* Subscribe to view properties */
wmMsgSubscribeValue msg_sub_value_mpr_tag_refresh = {
@@ -1157,8 +1157,8 @@ static void manipulator_xform_message_subscribe(
}
}
- PointerRNA space_ptr;
- RNA_pointer_create(&screen->id, &RNA_SpaceView3D, sa->spacedata.first, &space_ptr);
+ PointerRNA toolsettings_ptr;
+ RNA_pointer_create(&scene->id, &RNA_ToolSettings, scene->toolsettings, &toolsettings_ptr);
if (type_fn == TRANSFORM_WGT_manipulator) {
extern PropertyRNA rna_ToolSettings_transform_pivot_point;
@@ -1166,7 +1166,7 @@ static void manipulator_xform_message_subscribe(
&rna_ToolSettings_transform_pivot_point
};
for (int i = 0; i < ARRAY_SIZE(props); i++) {
- WM_msg_subscribe_rna(mbus, &space_ptr, props[i], &msg_sub_value_mpr_tag_refresh, __func__);
+ WM_msg_subscribe_rna(mbus, &toolsettings_ptr, props[i], &msg_sub_value_mpr_tag_refresh, __func__);
}
}
else if (type_fn == VIEW3D_WGT_xform_cage) {