Fix #136185: Overlay: Reference images in front of meshes in render mode
This was caused by the reference images being drawn before the prepass. Moving after the prepass fixes the issue. Pull Request: https://projects.blender.org/blender/blender/pulls/136324
This commit is contained in:
committed by
Clément Foucault
parent
a4058fa173
commit
463ea020e4
@@ -836,12 +836,12 @@ void Instance::draw_v3d(Manager &manager, View &view)
|
||||
}
|
||||
}
|
||||
|
||||
regular.prepass.draw_line(resources.overlay_line_fb, manager, view);
|
||||
|
||||
/* TODO(fclem): Split overlay and rename draw functions. */
|
||||
/* TODO(fclem): Draw on line framebuffer. */
|
||||
regular.empties.draw_images(resources.overlay_fb, manager, view);
|
||||
|
||||
regular.prepass.draw_line(resources.overlay_line_fb, manager, view);
|
||||
|
||||
if (state.xray_enabled || (state.v3d && state.v3d->shading.type > OB_SOLID)) {
|
||||
/* If workbench is not enabled, the infront buffer might contain garbage. */
|
||||
GPU_framebuffer_bind(resources.overlay_line_in_front_fb);
|
||||
|
||||
Reference in New Issue
Block a user