[Bf-blender-cvs] [100fe61f7c5] master: Sculpt: Fix T100941: Draw cache invalidation loop

Joseph Eagar noreply at git.blender.org
Mon Sep 12 20:10:16 CEST 2022


Commit: 100fe61f7c5be981193a46776cef5ba4df64eb31
Author: Joseph Eagar
Date:   Mon Sep 12 11:09:03 2022 -0700
Branches: master
https://developer.blender.org/rB100fe61f7c5be981193a46776cef5ba4df64eb31

Sculpt: Fix T100941: Draw cache invalidation loop

PBVH draw was invalidating the draw cache even
when disabled (e.g. if modifiers exist).

===================================================================

M	source/blender/draw/intern/draw_cache_impl_mesh.cc

===================================================================

diff --git a/source/blender/draw/intern/draw_cache_impl_mesh.cc b/source/blender/draw/intern/draw_cache_impl_mesh.cc
index e60689f0237..c22382b3e09 100644
--- a/source/blender/draw/intern/draw_cache_impl_mesh.cc
+++ b/source/blender/draw/intern/draw_cache_impl_mesh.cc
@@ -556,8 +556,7 @@ static bool mesh_batch_cache_valid(Object *object, Mesh *me)
   }
 
   if (object->sculpt && object->sculpt->pbvh) {
-    if (cache->pbvh_is_drawing != BKE_pbvh_is_drawing(object->sculpt->pbvh) ||
-        BKE_pbvh_draw_cache_invalid(object->sculpt->pbvh)) {
+    if (cache->pbvh_is_drawing != BKE_pbvh_is_drawing(object->sculpt->pbvh)) {
       return false;
     }



More information about the Bf-blender-cvs mailing list