[Bf-blender-cvs] [12d7994a481] master: Cleanup: Improve comment about copying mesh shared caches
Hans Goudey
noreply at git.blender.org
Sat Nov 19 00:08:32 CET 2022
Commit: 12d7994a4811021f251453a378be421ee5291041
Author: Hans Goudey
Date: Fri Nov 18 17:02:30 2022 -0600
Branches: master
https://developer.blender.org/rB12d7994a4811021f251453a378be421ee5291041
Cleanup: Improve comment about copying mesh shared caches
===================================================================
M source/blender/blenkernel/intern/mesh.cc
===================================================================
diff --git a/source/blender/blenkernel/intern/mesh.cc b/source/blender/blenkernel/intern/mesh.cc
index f2f9e4a4c5f..23fee166a0b 100644
--- a/source/blender/blenkernel/intern/mesh.cc
+++ b/source/blender/blenkernel/intern/mesh.cc
@@ -124,9 +124,9 @@ static void mesh_copy_data(Main *bmain, ID *id_dst, const ID *id_src, const int
* highly unlikely we want to create a duplicate and not use it for drawing. */
mesh_dst->runtime->is_original_bmesh = false;
- /* Share the bounding box cache between the source and destination mesh for improved performance
- * when the source is persistent and edits to the destination don't change the bounds. It will be
- * "un-shared" as necessary when the positions are changed. */
+ /* Share various derived caches between the source and destination mesh for improved performance
+ * when the source is persistent and edits to the destination mesh don't affect the caches.
+ * Caches will be "un-shared" as necessary later on. */
mesh_dst->runtime->bounds_cache = mesh_src->runtime->bounds_cache;
mesh_dst->runtime->loose_edges_cache = mesh_src->runtime->loose_edges_cache;
More information about the Bf-blender-cvs
mailing list