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
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-05-10 13:24:07 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-05-10 13:24:07 +0300
commit27da2db0caf77b2f4cae443c3d3146d517a1cc4b (patch)
tree107eea89148ff7c5b4544cc6463b1236ccd73b16 /source/blender/editors/transform/transform_orientations.c
parente6814acf13d37f002f5fe6a20594970fcd186c2e (diff)
3D View: utility to get matrix from cursor
Diffstat (limited to 'source/blender/editors/transform/transform_orientations.c')
-rw-r--r--source/blender/editors/transform/transform_orientations.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/editors/transform/transform_orientations.c b/source/blender/editors/transform/transform_orientations.c
index c1a2c99e26d..aeea8930ccb 100644
--- a/source/blender/editors/transform/transform_orientations.c
+++ b/source/blender/editors/transform/transform_orientations.c
@@ -483,9 +483,8 @@ void initTransformOrientation(bContext *C, TransInfo *t)
break;
case V3D_MANIP_CURSOR:
{
- const View3DCursor *cursor = ED_view3d_cursor3d_get(t->scene, CTX_wm_view3d(C));
BLI_strncpy(t->spacename, IFACE_("cursor"), sizeof(t->spacename));
- quat_to_mat3(t->spacemtx, cursor->rotation);
+ ED_view3d_cursor3d_calc_mat3(t->scene, CTX_wm_view3d(C), t->spacemtx);
break;
}
case V3D_MANIP_CUSTOM: