Fix #110721: "show_gizmo" does not switch off all gizmos #110932
|
@ -783,8 +783,9 @@ static void clip_main_region_draw(const bContext *C, ARegion *region)
|
|||
/* draw Grease Pencil - screen space only */
|
||||
clip_draw_grease_pencil((bContext *)C, false);
|
||||
}
|
||||
|
||||
WM_gizmomap_draw(region->gizmo_map, C, WM_GIZMOMAP_DRAWSTEP_2D);
|
||||
if ((sc->gizmo_flag & SCLIP_GIZMO_HIDE) == 0) {
|
||||
WM_gizmomap_draw(region->gizmo_map, C, WM_GIZMOMAP_DRAWSTEP_2D);
|
||||
}
|
||||
}
|
||||
|
||||
static void clip_main_region_listener(const wmRegionListenerParams *params)
|
||||
|
|
|
@ -720,8 +720,9 @@ static void image_main_region_draw(const bContext *C, ARegion *region)
|
|||
nullptr,
|
||||
C);
|
||||
}
|
||||
|
||||
WM_gizmomap_draw(region->gizmo_map, C, WM_GIZMOMAP_DRAWSTEP_2D);
|
||||
if ((sima->gizmo_flag & SI_GIZMO_HIDE) == 0) {
|
||||
WM_gizmomap_draw(region->gizmo_map, C, WM_GIZMOMAP_DRAWSTEP_2D);
|
||||
}
|
||||
draw_image_cache(C, region);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue