diff options
author | Jacques Lucke <mail@jlucke.com> | 2018-10-09 15:36:15 +0300 |
---|---|---|
committer | Jacques Lucke <mail@jlucke.com> | 2018-10-09 15:36:15 +0300 |
commit | 85944a2d7e73d1ed070b19e50bc6927b47070091 (patch) | |
tree | 73c976ef37777b5569045fdb1e96ecd467ac6320 /source/blender/editors/gizmo_library/gizmo_library_utils.c | |
parent | 3e2422a9471b7fccdd1de57ed06f3a0b95f5bb0a (diff) |
Image Empties: Usability improvements and fixes
- new "Align to View" option when loading a new image
- automatically align to view when dropping an image into a viewport
- larger default size for image empties
- fix image empty gizmo in orthographic view
- new "Align Objects to View" operator
Reviewer: brecht
Differential: https://developer.blender.org/D3778
Diffstat (limited to 'source/blender/editors/gizmo_library/gizmo_library_utils.c')
-rw-r--r-- | source/blender/editors/gizmo_library/gizmo_library_utils.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/gizmo_library/gizmo_library_utils.c b/source/blender/editors/gizmo_library/gizmo_library_utils.c index 350c9922179..25364652785 100644 --- a/source/blender/editors/gizmo_library/gizmo_library_utils.c +++ b/source/blender/editors/gizmo_library/gizmo_library_utils.c @@ -190,7 +190,8 @@ bool gizmo_window_project_2d( float plane[4], co[3]; plane_from_point_normal_v3(plane, mat[3], mat[2]); - if (ED_view3d_win_to_3d_on_plane(ar, plane, mval, true, co)) { + bool clip_ray = ((RegionView3D *)ar->regiondata)->is_persp; + if (ED_view3d_win_to_3d_on_plane(ar, plane, mval, clip_ray, co)) { float imat[4][4]; invert_m4_m4(imat, mat); mul_m4_v3(imat, co); |