Blender Git Loki

Git Commits -> Revision a459ef2

Revision a459ef2 by Campbell Barton (master)
March 1, 2018, 05:37 (GMT)
Fix T54190: Occlusion query select failed

By default select wasn't picking the nearest object,
this could have been fixed by not clearing the depth buffer,
but calling GPU_select_(begin/end) without the binded frame-buffer
caused issues for depth-picking. So move GPU_select begin/end to a
callback.

This also has the advantage that only needs to populate the engines once
to draw two passes.

Note that cycling through objects fails with occlusion queries still,
will fix shortly.

Commit Details:

Full Hash: a459ef2827f1bb9e6ce92b0946a7463061c9ac55
Parent Commit: 68015f9
Lines Changed: +83, -31

3 Modified Paths:

/source/blender/draw/DRW_engine.h (+7, -1) (Diff)
/source/blender/draw/intern/draw_manager.c (+16, -6) (Diff)
/source/blender/editors/space_view3d/view3d_view.c (+60, -24) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021