diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-05-16 06:38:33 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-05-16 06:50:00 +0300 |
commit | c9c23a3e44c0648d37396bbb19236e881d33e2cc (patch) | |
tree | 12b7b7f2dc205d1ad373f78396841d5290abcf31 /source/blender/editors/transform/transform_orientations.c | |
parent | f2144cf298aab7fd173025e490fa9e98b7661a88 (diff) |
RNA: add 3D cursor matrix attribute
Avoids having to check rotation modes to get the orientation.
Diffstat (limited to 'source/blender/editors/transform/transform_orientations.c')
-rw-r--r-- | source/blender/editors/transform/transform_orientations.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform_orientations.c b/source/blender/editors/transform/transform_orientations.c index e16579aba64..70bb2bf98a6 100644 --- a/source/blender/editors/transform/transform_orientations.c +++ b/source/blender/editors/transform/transform_orientations.c @@ -485,7 +485,7 @@ void initTransformOrientation(bContext *C, TransInfo *t) break; case V3D_ORIENT_CURSOR: { BLI_strncpy(t->spacename, IFACE_("cursor"), sizeof(t->spacename)); - ED_view3d_cursor3d_calc_mat3(t->scene, t->spacemtx); + BKE_scene_cursor_rot_to_mat3(&t->scene->cursor, t->spacemtx); break; } case V3D_ORIENT_CUSTOM_MATRIX: |