Fix: Empty built-in attributes are duplicated by some nodes #107814

Merged
Hans Goudey merged 2 commits from mod_moder/blender:tmp_fix_empy_attribute_duplication into main 2023-05-10 17:40:44 +02:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 22d4f31362 - Show all commits

View File

@ -1023,7 +1023,7 @@ static void mesh_ensure_cdlayers_primary(Mesh &mesh)
blender::bke::MutableAttributeAccessor attributes = mesh.attributes_for_write();
blender::bke::AttributeInitConstruct attribute_init;
/* Try to create attributes if it not exist. */
/* Try to create attributes if they do not exist. */

Grammar: Try to create attributes if they do not exist.

Grammar: `Try to create attributes if they do not exist.`
attributes.add("position", ATTR_DOMAIN_POINT, CD_PROP_FLOAT3, attribute_init);
attributes.add(".edge_verts", ATTR_DOMAIN_EDGE, CD_PROP_INT32_2D, attribute_init);
attributes.add(".corner_vert", ATTR_DOMAIN_CORNER, CD_PROP_INT32, attribute_init);