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:
authorPhilipp Oeser <info@graphics-engineer.com>2022-09-02 12:58:44 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2022-09-06 12:44:07 +0300
commit25c8d72e204b0d216a0cda54b8d66056f02a27b8 (patch)
treed49e1981eda23edfc99221cfa4da3948312d5433
parent8000d526842340387e137a84725a92f903555b24 (diff)
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
-rw-r--r--source/blender/blenkernel/intern/attribute_access_intern.hh5
1 files changed, 1 insertions, 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_;