From 25c8d72e204b0d216a0cda54b8d66056f02a27b8 Mon Sep 17 00:00:00 2001 From: Philipp Oeser Date: Fri, 2 Sep 2022 11:58:44 +0200 Subject: Fix T100747: Cannot add "String" attribute to mesh Caused by {rB31365c6b9e4c}. The new API `CustomDataAttributeProvider` just did not support `CD_MASK_PROP_STRING`. While strings dont perform nicely in their current form, still add support back for the API. Adding Strings to the supported types seems to survive just fine, see attached example file. Maniphest Tasks: T100747 Differential Revision: https://developer.blender.org/D15851 --- source/blender/blenkernel/intern/attribute_access_intern.hh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/source/blender/blenkernel/intern/attribute_access_intern.hh b/source/blender/blenkernel/intern/attribute_access_intern.hh index 1a2607d9403..9b784d02115 100644 --- a/source/blender/blenkernel/intern/attribute_access_intern.hh +++ b/source/blender/blenkernel/intern/attribute_access_intern.hh @@ -125,10 +125,7 @@ class DynamicAttributesProvider { */ class CustomDataAttributeProvider final : public DynamicAttributesProvider { private: - static constexpr uint64_t supported_types_mask = CD_MASK_PROP_FLOAT | CD_MASK_PROP_FLOAT2 | - CD_MASK_PROP_FLOAT3 | CD_MASK_PROP_INT32 | - CD_MASK_PROP_COLOR | CD_MASK_PROP_BOOL | - CD_MASK_PROP_INT8 | CD_MASK_PROP_BYTE_COLOR; + static constexpr uint64_t supported_types_mask = CD_MASK_PROP_ALL; const eAttrDomain domain_; const CustomDataAccessInfo custom_data_access_; -- cgit v1.2.3