From 196dfc01a3e99c3bef0e44acf599bca50ae0300e Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 12 Feb 2021 00:09:48 +1100 Subject: Fix T84114: Existence of vertex groups slows down mesh editing Having a vertex group in a mesh slowed down unrelated operations such as selection. De-duplicating custom-data arrays for layers that contain pointers can become slow without any benefit as the content never matches. Use full copies when storing custom-data for edit-mesh undo. --- source/blender/blenkernel/BKE_customdata.h | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/blenkernel/BKE_customdata.h') diff --git a/source/blender/blenkernel/BKE_customdata.h b/source/blender/blenkernel/BKE_customdata.h index 51650d161ea..57fdafaf8d9 100644 --- a/source/blender/blenkernel/BKE_customdata.h +++ b/source/blender/blenkernel/BKE_customdata.h @@ -421,6 +421,7 @@ int CustomData_sizeof(int type); /* get the name of a layer type */ const char *CustomData_layertype_name(int type); bool CustomData_layertype_is_singleton(int type); +bool CustomData_layertype_is_dynamic(int type); int CustomData_layertype_layers_max(const int type); /* make sure the name of layer at index is unique */ -- cgit v1.2.3