From c9c23a3e44c0648d37396bbb19236e881d33e2cc Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 16 May 2019 13:38:33 +1000 Subject: RNA: add 3D cursor matrix attribute Avoids having to check rotation modes to get the orientation. --- source/blender/blenkernel/BKE_scene.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source/blender/blenkernel/BKE_scene.h') diff --git a/source/blender/blenkernel/BKE_scene.h b/source/blender/blenkernel/BKE_scene.h index 75ff5eace3c..581df648add 100644 --- a/source/blender/blenkernel/BKE_scene.h +++ b/source/blender/blenkernel/BKE_scene.h @@ -240,6 +240,11 @@ void BKE_scene_cursor_quat_to_rot(struct View3DCursor *cursor, const float quat[4], bool use_compat); +void BKE_scene_cursor_to_mat4(const struct View3DCursor *cursor, float mat[4][4]); +void BKE_scene_cursor_from_mat4(struct View3DCursor *cursor, + const float mat[4][4], + bool use_compat); + #ifdef __cplusplus } #endif -- cgit v1.2.3