From e8291f4504d320ea1eac0601a9b99263fbf305e8 Mon Sep 17 00:00:00 2001 From: Hans Goudey Date: Mon, 17 Oct 2022 13:11:50 -0500 Subject: 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. --- source/blender/blenloader/intern/versioning_defaults.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source') 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) { -- cgit v1.2.3