main sync #3

Merged
Patrick Busch merged 318 commits from blender/blender:main into main 2023-03-17 15:52:21 +01:00
Showing only changes of commit 27b9ce6ab6 - Show all commits

View File

@ -255,14 +255,17 @@ static void mesh_blend_write(BlendWriter *writer, ID *id, const void *id_address
Set<std::string> names_to_skip; Set<std::string> names_to_skip;
if (!BLO_write_is_undo(writer)) { if (!BLO_write_is_undo(writer)) {
/* When converting to the old mesh format, don't save redundant attributes. */ /* When converting to the old mesh format, don't save redundant attributes. */
names_to_skip.add_multiple_new({".hide_vert", names_to_skip.add_multiple_new({"position",
".hide_vert",
".hide_edge", ".hide_edge",
".hide_poly", ".hide_poly",
"position", ".uv_seam",
"material_index",
".select_vert", ".select_vert",
".select_edge", ".select_edge",
".select_poly"}); ".select_poly",
"material_index",
"sharp_face",
"sharp_edge"});
mesh->mvert = BKE_mesh_legacy_convert_positions_to_verts( mesh->mvert = BKE_mesh_legacy_convert_positions_to_verts(
mesh, temp_arrays_for_legacy_format, vert_layers); mesh, temp_arrays_for_legacy_format, vert_layers);