diff options
author | Joseph Eagar <joeedh@gmail.com> | 2022-04-27 23:03:49 +0300 |
---|---|---|
committer | Joseph Eagar <joeedh@gmail.com> | 2022-04-27 23:05:06 +0300 |
commit | bfb4dcaa1a7ec5bfd2b25cf7aa5b6173d6c53358 (patch) | |
tree | 351733360f03cc1505a409e14873161c582afb83 /source/blender/blenkernel/intern/pbvh_intern.h | |
parent | f3d5114c41352161d0dad7f30ef6b7dd1f28df85 (diff) |
Fix T97235: PBVH draw cache invalidation bug
The PBVH draw cache wasn't being invalidated in
all cases. It is now invalidated whenever a PBVH
node's draw buffers are freed.
Diffstat (limited to 'source/blender/blenkernel/intern/pbvh_intern.h')
-rw-r--r-- | source/blender/blenkernel/intern/pbvh_intern.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/pbvh_intern.h b/source/blender/blenkernel/intern/pbvh_intern.h index b7a2b578a1c..b5480673653 100644 --- a/source/blender/blenkernel/intern/pbvh_intern.h +++ b/source/blender/blenkernel/intern/pbvh_intern.h @@ -196,6 +196,9 @@ struct PBVH { AttributeDomain color_domain; bool is_drawing; + + /* Used by DynTopo to invalidate the draw cache. */ + bool draw_cache_invalid; }; /* pbvh.c */ @@ -270,6 +273,7 @@ void pbvh_bmesh_normals_update(PBVHNode **nodes, int totnode); void pbvh_pixels_free(PBVHNode *node); void pbvh_pixels_free_brush_test(PBVHNode *node); +void pbvh_free_draw_buffers(PBVH *pbvh, PBVHNode *node); #ifdef __cplusplus } |