Gizmo: fix incorrect dial clip scaling
Failed with obvious error when the dials scale wasn't 1.0
This commit is contained in:
parent
fbc837b2f8
commit
7deb38eec6
Notes:
blender-bot
2023-02-14 05:17:37 +01:00
Referenced by issue #56868, Loop Cut in no Overlaye mode crashes!
|
@ -367,7 +367,7 @@ static void gizmo_dial_draw_select(const bContext *C, wmGizmo *gz, int select_id
|
|||
|
||||
copy_v3_v3(clip_plane, rv3d->viewinv[2]);
|
||||
clip_plane[3] = -dot_v3v3(rv3d->viewinv[2], gz->matrix_basis[3]);
|
||||
clip_plane[3] += DIAL_CLIP_BIAS * gz->scale_final;
|
||||
clip_plane[3] += DIAL_CLIP_BIAS;
|
||||
glEnable(GL_CLIP_DISTANCE0);
|
||||
}
|
||||
|
||||
|
@ -393,7 +393,7 @@ static void gizmo_dial_draw(const bContext *C, wmGizmo *gz)
|
|||
|
||||
copy_v3_v3(clip_plane, rv3d->viewinv[2]);
|
||||
clip_plane[3] = -dot_v3v3(rv3d->viewinv[2], gz->matrix_basis[3]);
|
||||
clip_plane[3] += DIAL_CLIP_BIAS * gz->scale_final;
|
||||
clip_plane[3] += DIAL_CLIP_BIAS;
|
||||
|
||||
glEnable(GL_CLIP_DISTANCE0);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue