UI: Show Passepartout When All Overlays Off
Bring back old behavior where passepartout is shown when all overlays are disabled. Move the passepartout option to the sidebar. Pull Request: https://projects.blender.org/blender/blender/pulls/122577
This commit is contained in:
committed by
Harley Acheson
parent
059c74dc98
commit
10071caea8
@@ -615,6 +615,11 @@ static void drawviewborder(Scene *scene, Depsgraph *depsgraph, ARegion *region,
|
||||
immUnbindProgram();
|
||||
}
|
||||
|
||||
/* When overlays are disabled, only show camera outline & passepartout. */
|
||||
if (v3d->flag2 & V3D_HIDE_OVERLAYS || !(v3d->flag2 & V3D_SHOW_CAMERA_GUIDES)) {
|
||||
return;
|
||||
}
|
||||
|
||||
/* And now, the dashed lines! */
|
||||
immBindBuiltinProgram(GPU_SHADER_3D_LINE_DASHED_UNIFORM_COLOR);
|
||||
|
||||
@@ -1134,7 +1139,7 @@ static void view3d_draw_border(const bContext *C, ARegion *region)
|
||||
RegionView3D *rv3d = static_cast<RegionView3D *>(region->regiondata);
|
||||
View3D *v3d = CTX_wm_view3d(C);
|
||||
|
||||
if (rv3d->persp == RV3D_CAMOB && !(v3d->flag2 & V3D_HIDE_OVERLAYS)) {
|
||||
if (rv3d->persp == RV3D_CAMOB) {
|
||||
drawviewborder(scene, depsgraph, region, v3d);
|
||||
}
|
||||
else if (v3d->flag2 & V3D_RENDER_BORDER) {
|
||||
|
||||
Reference in New Issue
Block a user