Fix T67641 Gizmo3D: Transform gizmo disappear in very close view
This was caused but a workaround for not selecting the gizmos in camera view. We lower the threshold to make it work on maximum zoom level.
This commit is contained in:
parent
78ba097331
commit
79003fa0c4
Notes:
blender-bot
2023-02-14 06:20:47 +01:00
Referenced by issue #94101, Transform gizmo disappears when up very close Referenced by issue #67641, Transform gizmo disappear in very close view Referenced by issue #53498, baking normal map using cycles does not support custom vertex normals on the baking target mesh
|
@ -1862,7 +1862,7 @@ static void WIDGETGROUP_gizmo_draw_prepare(const bContext *C, wmGizmoGroup *gzgr
|
|||
|
||||
/* when looking through a selected camera, the gizmo can be at the
|
||||
* exact same position as the view, skip so we don't break selection */
|
||||
if (ggd->all_hidden || fabsf(ED_view3d_pixel_size(rv3d, rv3d->twmat[3])) < 1e-6f) {
|
||||
if (ggd->all_hidden || fabsf(ED_view3d_pixel_size(rv3d, rv3d->twmat[3])) < 5e-7f) {
|
||||
MAN_ITER_AXES_BEGIN (axis, axis_idx) {
|
||||
WM_gizmo_set_flag(axis, WM_GIZMO_HIDDEN, true);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue