diff options
author | Campbell Barton <campbell@blender.org> | 2022-08-09 03:50:59 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-08-09 03:50:59 +0300 |
commit | 4915fc4547e050da19bc5af525a0ea1cc8f49f2a (patch) | |
tree | 954e68e4214de44f41a715a69207b67ed787a920 /source/blender/editors/include | |
parent | 8b3e3c18100aac6ac956e782dc108aae500eac93 (diff) | |
parent | 8ed2abf856cbabd970d92aa3de850b0c70dccd0c (diff) |
Merge branch 'blender-v3.3-release'
Diffstat (limited to 'source/blender/editors/include')
-rw-r--r-- | source/blender/editors/include/ED_view3d.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/editors/include/ED_view3d.h b/source/blender/editors/include/ED_view3d.h index 931bb7be8bf..7d31950c869 100644 --- a/source/blender/editors/include/ED_view3d.h +++ b/source/blender/editors/include/ED_view3d.h @@ -1197,6 +1197,14 @@ bool ED_view3d_camera_lock_autokey(struct View3D *v3d, void ED_view3d_lock_clear(struct View3D *v3d); /** + * Check if creating an undo step should be performed if the viewport moves. + * \return true if #ED_view3d_camera_lock_undo_push would do an undo push. + */ +bool ED_view3d_camera_lock_undo_test(const View3D *v3d, + const RegionView3D *rv3d, + struct bContext *C); + +/** * Create an undo step when the camera is locked to the view. * \param str: The name of the undo step (typically #wmOperatorType.name should be used). * |