diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-11-20 09:32:09 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-11-20 09:32:09 +0300 |
commit | 93850c74c1dd277124a61b0b7d474eba8db00fdf (patch) | |
tree | b29c7297662fa97e0160bd7bd3b7ad1fbe5dbe41 /source | |
parent | 1501c3adad13c3b0ae4f02a84f1be2c84f6f1db2 (diff) |
Fix add-object cursor plane failing to update on zoom
Zoom with an orthographic view wasn't refreshing the preview plane.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_placement.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/space_view3d/view3d_placement.c b/source/blender/editors/space_view3d/view3d_placement.c index b8512e42dcf..6d10aa5f957 100644 --- a/source/blender/editors/space_view3d/view3d_placement.c +++ b/source/blender/editors/space_view3d/view3d_placement.c @@ -1763,7 +1763,7 @@ struct PlacementCursor { /* Check if we need to re-calculate the plane matrix. */ int mval_prev[2]; - float viewmat_prev[4][4]; + float persmat_prev[4][4]; }; static void cursor_plane_draw(bContext *C, int x, int y, void *customdata) @@ -1802,7 +1802,7 @@ static void cursor_plane_draw(bContext *C, int x, int y, void *customdata) /* Update matrix? */ if ((plc->mval_prev[0] != mval[0]) || (plc->mval_prev[1] != mval[1]) || - !equals_m4m4(plc->viewmat_prev, rv3d->viewmat)) { + !equals_m4m4(plc->persmat_prev, rv3d->persmat)) { plc->mval_prev[0] = mval[0]; plc->mval_prev[1] = mval[1]; @@ -1812,7 +1812,7 @@ static void cursor_plane_draw(bContext *C, int x, int y, void *customdata) copy_m4_m3(plc->matrix, orient_matrix); copy_v3_v3(plc->matrix[3], co); - copy_m4_m4(plc->viewmat_prev, rv3d->viewmat); + copy_m4_m4(plc->persmat_prev, rv3d->persmat); } /* Draw */ |