Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <jacques@blender.org>2021-12-02 17:32:04 +0300
committerJacques Lucke <jacques@blender.org>2021-12-02 17:32:19 +0300
commitaec56e562a2799ea764671206f7b3b889b69829d (patch)
tree2b231644a9ce1c754565d35911c05faea9aac9b5
parenta1f0f2eacb10d1429611979b1464408e48b800c8 (diff)
Fix (unreported): incorrect custom data layer created
Without this fix `CustomDataAttributes::create_by_move` did not work on named attributes.
-rw-r--r--source/blender/blenkernel/intern/attribute_access.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/attribute_access.cc b/source/blender/blenkernel/intern/attribute_access.cc
index 79070500888..ef2505692ec 100644
--- a/source/blender/blenkernel/intern/attribute_access.cc
+++ b/source/blender/blenkernel/intern/attribute_access.cc
@@ -288,7 +288,7 @@ static void *add_generic_custom_data_layer(CustomData &custom_data,
char attribute_name_c[MAX_NAME];
attribute_id.name().copy(attribute_name_c);
return CustomData_add_layer_named(
- &custom_data, data_type, CD_DEFAULT, nullptr, domain_size, attribute_name_c);
+ &custom_data, data_type, alloctype, layer_data, domain_size, attribute_name_c);
}
const AnonymousAttributeID &anonymous_id = attribute_id.anonymous_id();
return CustomData_add_layer_anonymous(