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:
authorBataev Artem <shader>2020-02-09 03:32:08 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-02-09 03:37:56 +0300
commitcebd025e02f1147c48cd658816ad835f94128a4a (patch)
treed5bde2571fd3dfb6b21a756724dd7aab85ee0256 /source/blender/editors/include
parent2be20e9ece53ee9af4ad5c14f32e38afd8d25dad (diff)
3D View: check view quaternion alignment which orbiting
This makes auto-perspective work as expected when orbiting out of a snapped view.
Diffstat (limited to 'source/blender/editors/include')
-rw-r--r--source/blender/editors/include/ED_view3d.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/include/ED_view3d.h b/source/blender/editors/include/ED_view3d.h
index 622b64f547f..cfeffae1052 100644
--- a/source/blender/editors/include/ED_view3d.h
+++ b/source/blender/editors/include/ED_view3d.h
@@ -624,6 +624,8 @@ void ED_view3d_update_viewmat(struct Depsgraph *depsgraph,
bool offscreen);
bool ED_view3d_quat_from_axis_view(const char view, float quat[4]);
char ED_view3d_quat_to_axis_view(const float quat[4], const float epsilon);
+bool ED_view3d_quat_is_axis_aligned(const float viewquat[4]);
+
char ED_view3d_lock_view_from_index(int index);
char ED_view3d_axis_view_opposite(char view);
bool ED_view3d_lock(struct RegionView3D *rv3d);