[Bf-blender-cvs] [6d33308a8dc] master: Cleanup: use API to reset cursor rotation
Campbell Barton
noreply at git.blender.org
Thu Mar 7 02:58:47 CET 2019
Commit: 6d33308a8dcee1847aaeba1073b5497ed8406a66
Author: Campbell Barton
Date: Thu Mar 7 12:58:11 2019 +1100
Branches: master
https://developer.blender.org/rB6d33308a8dcee1847aaeba1073b5497ed8406a66
Cleanup: use API to reset cursor rotation
===================================================================
M source/blender/editors/space_view3d/view3d_edit.c
===================================================================
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);
More information about the Bf-blender-cvs
mailing list