diff options
author | Hans Goudey <h.goudey@me.com> | 2022-10-17 21:11:50 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-10-17 21:18:25 +0300 |
commit | e8291f4504d320ea1eac0601a9b99263fbf305e8 (patch) | |
tree | 173777bf3cbc10cabe98f16c1bca2cc9a70fc49d | |
parent | 23ea72f051028c8980736eee157f3fabc0615dd5 (diff) |
Sculpt: Remove face sets from default cube
As discussed in T101623, since face sets have become optionally stored,
(see b5f7af31d6d474c3b4) the default cube shouldn't have face sets--
they should be created explicitly by the user instead. This may improve
performance when modifying the default cube mesh.
-rw-r--r-- | source/blender/blenloader/intern/versioning_defaults.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/versioning_defaults.cc b/source/blender/blenloader/intern/versioning_defaults.cc index 8917654de85..da23e9cb49f 100644 --- a/source/blender/blenloader/intern/versioning_defaults.cc +++ b/source/blender/blenloader/intern/versioning_defaults.cc @@ -37,6 +37,7 @@ #include "DNA_workspace_types.h" #include "BKE_appdir.h" +#include "BKE_attribute.hh" #include "BKE_brush.h" #include "BKE_colortools.h" #include "BKE_curveprofile.h" @@ -576,6 +577,7 @@ void BLO_update_defaults_startup_blend(Main *bmain, const char *app_template) CustomData_free_layers(&mesh->vdata, CD_PAINT_MASK, mesh->totvert); CustomData_free_layers(&mesh->ldata, CD_GRID_PAINT_MASK, mesh->totloop); } + mesh->attributes_for_write().remove(".sculpt_face_set"); } LISTBASE_FOREACH (Camera *, camera, &bmain->cameras) { |