Merge branch 'blender-v5.0-release'
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user