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>2019-03-07 04:58:11 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-03-07 04:58:11 +0300
commit6d33308a8dcee1847aaeba1073b5497ed8406a66 (patch)
tree47d4f6bfa663b04114aeb8cd61c546afec01f7d1 /source/blender/editors/space_view3d
parenta9241c41e1c2456082e3aab1ff45c744030ba2a3 (diff)
Cleanup: use API to reset cursor rotation
Diffstat (limited to 'source/blender/editors/space_view3d')
-rw-r--r--source/blender/editors/space_view3d/view3d_edit.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/source/blender/editors/space_view3d/view3d_edit.c b/source/blender/editors/space_view3d/view3d_edit.c
index 733adbf35dc..638efab4598 100644
--- a/source/blender/editors/space_view3d/view3d_edit.c
+++ b/source/blender/editors/space_view3d/view3d_edit.c
@@ -2735,10 +2735,9 @@ static int view3d_all_exec(bContext *C, wmOperator *op)
zero_v3(min);
zero_v3(max);
zero_v3(cursor->location);
- unit_qt(cursor->rotation_quaternion);
- zero_v3(cursor->rotation_euler);
- ARRAY_SET_ITEMS(cursor->rotation_axis, 0.0f, 1.0f, 0.0f);
- cursor->rotation_angle = 0.0f;
+ float mat3[3][3];
+ unit_m3(mat3);
+ BKE_scene_cursor_mat3_to_rot(cursor, mat3, false);
}
else {
INIT_MINMAX(min, max);