Blender Git Commit Log

Git Commits -> Revision 1425411

Revision 1425411 by Germano Cavalcante (master)
March 30, 2021, 19:23 (GMT)
Cleanup/Refactor: Unify functions that redraw the depth buffer

Now `ED_view3d_backbuf_depth_validate`, `ED_view3d_draw_depth` and
`ED_view3d_draw_depth_gpencil` are unified in `ED_view3d_depth_override`.

This new function replaces `ED_view3d_autodist_init`.

Also, since `ED_view3d_depth_update` depends on the render context, and
changing the context is a slow operation, that function also was removed,
and the depth buffer cached is now updated inside the new unified drawing
function when the "bool update_cache" parameter is true.

Finally `V3D_INVALID_BACKBUF` flag has been renamed and moved to
`runtime.flag`.

Differential revision: https://developer.blender.org/D10678

Commit Details:

Full Hash: 142541124976af41f08fb5479886350c2d803710
Parent Commit: da1b002
Lines Changed: +153, -185

18 Modified Paths:

/source/blender/blenkernel/intern/screen.c (+0, -3) (Diff)
/source/blender/draw/DRW_engine.h (+1, -2) (Diff)
/source/blender/draw/intern/draw_manager.c (+3, -6) (Diff)
/source/blender/editors/curve/editcurve_paint.c (+2, -7) (Diff)
/source/blender/editors/gpencil/annotate_paint.c (+17, -7) (Diff)
/source/blender/editors/gpencil/gpencil_fill.c (+2, -1) (Diff)
/source/blender/editors/gpencil/gpencil_paint.c (+9, -3) (Diff)
/source/blender/editors/gpencil/gpencil_primitive.c (+8, -4) (Diff)
/source/blender/editors/gpencil/gpencil_utils.c (+1, -1) (Diff)
/source/blender/editors/include/ED_view3d.h (+11, -6) (Diff)
/source/blender/editors/object/object_transform.c (+1, -6) (Diff)
/source/blender/editors/physics/particle_edit.c (+7, -9) (Diff)
/source/blender/editors/space_view3d/view3d_draw.c (+82, -90) (Diff)
/source/blender/editors/space_view3d/view3d_edit.c (+2, -3) (Diff)
/source/blender/editors/space_view3d/view3d_intern.h (+0, -10) (Diff)
/source/blender/editors/space_view3d/view3d_utils.c (+4, -18) (Diff)
/source/blender/makesdna/DNA_view3d_types.h (+3, -1) (Diff)
/source/blender/windowmanager/intern/wm_draw.c (+0, -8) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021