Commit: e8291f4504d320ea1eac0601a9b99263fbf305e8 Author: Hans Goudey Date: Mon Oct 17 13:11:50 2022 -0500 Branches: master https://developer.blender.org/rBe8291f4504d320ea1eac0601a9b99263fbf305e8
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. =================================================================== M source/blender/blenloader/intern/versioning_defaults.cc =================================================================== 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) { _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org List details, subscription details or unsubscribe: https://lists.blender.org/mailman/listinfo/bf-blender-cvs