[Bf-blender-cvs] [9a09adb7aff] master: Fix: Missing bounding box dirty tag when clearing mesh geometry
Hans Goudey
noreply at git.blender.org
Thu Nov 17 01:30:26 CET 2022
Commit: 9a09adb7aff81ba86aceaf13f4b1ce3d5c1e5bb0
Author: Hans Goudey
Date: Wed Nov 16 18:30:04 2022 -0600
Branches: master
https://developer.blender.org/rB9a09adb7aff81ba86aceaf13f4b1ce3d5c1e5bb0
Fix: Missing bounding box dirty tag when clearing mesh geometry
Similar to 801451c459587e2d2.
===================================================================
M source/blender/blenkernel/intern/mesh_runtime.cc
===================================================================
diff --git a/source/blender/blenkernel/intern/mesh_runtime.cc b/source/blender/blenkernel/intern/mesh_runtime.cc
index 9c2a0f94cb2..74010a30c45 100644
--- a/source/blender/blenkernel/intern/mesh_runtime.cc
+++ b/source/blender/blenkernel/intern/mesh_runtime.cc
@@ -253,6 +253,7 @@ void BKE_mesh_runtime_clear_geometry(Mesh *mesh)
free_bvh_cache(*mesh->runtime);
free_normals(*mesh->runtime);
free_subdiv_ccg(*mesh->runtime);
+ mesh->runtime->bounds_cache.tag_dirty();
if (mesh->runtime->shrinkwrap_data) {
BKE_shrinkwrap_boundary_data_free(mesh->runtime->shrinkwrap_data);
}
More information about the Bf-blender-cvs
mailing list