Fix #147905: No radius indicator for proportional UV editing

Resolve regression in [0] which hid transform overlay in the image view.

The indicator now displays when overlays are enabled in the UV editor.

[0]: 1df4a09539
This commit is contained in:
tariqsulley
2025-10-12 05:32:02 +00:00
committed by Campbell Barton
parent 87937059b1
commit f8a592a7f0

View File

@@ -1550,10 +1550,14 @@ static bool transinfo_show_overlay(TransInfo *t, ARegion *region)
return false;
}
if (t->spacetype == SPACE_VIEW3D) {
View3D *v3d = static_cast<View3D *>(t->view);
if ((v3d->flag2 & V3D_HIDE_OVERLAYS) == 0) {
return true;
switch (t->spacetype) {
case SPACE_VIEW3D: {
const View3D *v3d = static_cast<const View3D *>(t->view);
return (v3d->flag2 & V3D_HIDE_OVERLAYS) == 0;
}
case SPACE_IMAGE: {
const SpaceImage *sima = static_cast<const SpaceImage *>(t->area->spacedata.first);
return (sima->overlay.flag & SI_OVERLAY_SHOW_OVERLAYS) != 0;
}
}
return false;