Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/attribute_access_intern.hh
| Show First 20 Lines • Show All 119 Lines • ▼ Show 20 Lines | public: | ||||
| virtual void foreach_domain(const FunctionRef<void(eAttrDomain)> callback) const = 0; | virtual void foreach_domain(const FunctionRef<void(eAttrDomain)> callback) const = 0; | ||||
| }; | }; | ||||
| /** | /** | ||||
| * This is the attribute provider for most user generated attributes. | * This is the attribute provider for most user generated attributes. | ||||
| */ | */ | ||||
| class CustomDataAttributeProvider final : public DynamicAttributesProvider { | class CustomDataAttributeProvider final : public DynamicAttributesProvider { | ||||
| private: | private: | ||||
| static constexpr uint64_t supported_types_mask = CD_MASK_PROP_FLOAT | CD_MASK_PROP_FLOAT2 | | static constexpr uint64_t supported_types_mask = CD_MASK_PROP_FLOAT | CD_MASK_PROP_FLOAT2 | | ||||
HooglyBoogly: I think this is the same as `CD_MASK_PROP_ALL` now. | |||||
| CD_MASK_PROP_FLOAT3 | CD_MASK_PROP_INT32 | | CD_MASK_PROP_FLOAT3 | CD_MASK_PROP_INT32 | | ||||
| CD_MASK_PROP_COLOR | CD_MASK_PROP_BOOL | | CD_MASK_PROP_COLOR | CD_MASK_PROP_BOOL | | ||||
| CD_MASK_PROP_INT8 | CD_MASK_PROP_BYTE_COLOR; | CD_MASK_PROP_INT8 | CD_MASK_PROP_BYTE_COLOR | | ||||
| CD_MASK_PROP_STRING; | |||||
| const eAttrDomain domain_; | const eAttrDomain domain_; | ||||
| const CustomDataAccessInfo custom_data_access_; | const CustomDataAccessInfo custom_data_access_; | ||||
| public: | public: | ||||
| CustomDataAttributeProvider(const eAttrDomain domain, | CustomDataAttributeProvider(const eAttrDomain domain, | ||||
| const CustomDataAccessInfo custom_data_access) | const CustomDataAccessInfo custom_data_access) | ||||
| : domain_(domain), custom_data_access_(custom_data_access) | : domain_(domain), custom_data_access_(custom_data_access) | ||||
| { | { | ||||
| ▲ Show 20 Lines • Show All 361 Lines • Show Last 20 Lines | |||||
I think this is the same as CD_MASK_PROP_ALL now.