Fix camera border bug in passepartout render view
{F10761402} With active viewport render from camera view, the camera border shows up, even when passepartout and overlays are disabled. By moving the line-drawing code to the passepartout section, it is effectively disabled when passepartout is off. Reviewed By: sebastian_k Differential Revision: https://developer.blender.org/D12745
This commit is contained in:
Submodule release/datafiles/locale updated: 4833954c0a...8ce0741c51
Submodule release/scripts/addons updated: f86f25e622...c0942837ab
Submodule release/scripts/addons_contrib updated: 5a82baad9f...42da56aa73
@@ -608,11 +608,10 @@ static void drawviewborder(Scene *scene, Depsgraph *depsgraph, ARegion *region,
|
||||
}
|
||||
|
||||
GPU_blend(GPU_BLEND_NONE);
|
||||
immUniformThemeColor3(TH_BACK);
|
||||
imm_draw_box_wire_2d(shdr_pos, x1i, y1i, x2i, y2i);
|
||||
}
|
||||
|
||||
immUniformThemeColor3(TH_BACK);
|
||||
imm_draw_box_wire_2d(shdr_pos, x1i, y1i, x2i, y2i);
|
||||
|
||||
#ifdef VIEW3D_CAMERA_BORDER_HACK
|
||||
if (view3d_camera_border_hack_test == true) {
|
||||
immUniformColor3ubv(view3d_camera_border_hack_col);
|
||||
|
Submodule source/tools updated: 01f51a0e55...3f12d0ae60
Reference in New Issue
Block a user