diff options
Diffstat (limited to 'source/blender/editors/include/ED_view3d.h')
-rw-r--r-- | source/blender/editors/include/ED_view3d.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source/blender/editors/include/ED_view3d.h b/source/blender/editors/include/ED_view3d.h index 1e9b68c0920..51fd8e6c533 100644 --- a/source/blender/editors/include/ED_view3d.h +++ b/source/blender/editors/include/ED_view3d.h @@ -1064,6 +1064,16 @@ bool ED_view3d_quat_to_axis_view(const float viewquat[4], float epsilon, char *r_view, char *r_view_axis_rotation); +/** + * A version of #ED_view3d_quat_to_axis_view that updates `viewquat` + * if it's within `epsilon` to an axis-view. + * + * \note Include the special case function since most callers need to perform these operations. + */ +bool ED_view3d_quat_to_axis_view_and_reset_quat(float viewquat[4], + float epsilon, + char *r_view, + char *r_view_axis_rotation); char ED_view3d_lock_view_from_index(int index); char ED_view3d_axis_view_opposite(char view); |