[Bf-blender-cvs] [2a43bb5ed77] blender-v3.3-release: Sculpt: Fix T100941: Draw cache invalidation loop

Joseph Eagar noreply at git.blender.org
Wed Sep 21 14:27:10 CEST 2022


Commit: 2a43bb5ed773ecf4c62b32bf816ec65543f05866
Author: Joseph Eagar
Date:   Mon Sep 12 11:09:03 2022 -0700
Branches: blender-v3.3-release
https://developer.blender.org/rB2a43bb5ed773ecf4c62b32bf816ec65543f05866

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 5b7b3fd9a4a..57d1456b738 100644
--- a/source/blender/draw/intern/draw_cache_impl_mesh.cc
+++ b/source/blender/draw/intern/draw_cache_impl_mesh.cc
@@ -555,8 +555,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