Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/geometry/nodes/node_geo_field_at_index.cc
| Show First 20 Lines • Show All 135 Lines • ▼ Show 20 Lines | attribute_math::convert_to_static_type(*type_, [&](auto dummy) { | ||||
| } | } | ||||
| } | } | ||||
| }); | }); | ||||
| output_array = VArray<T>::ForContainer(std::move(dst_array)); | output_array = VArray<T>::ForContainer(std::move(dst_array)); | ||||
| }); | }); | ||||
| return output_array; | return output_array; | ||||
| } | } | ||||
| std::optional<eAttrDomain> preferred_domain( | |||||
| const GeometryComponent & /*component*/) const override | |||||
| { | |||||
| return value_field_domain_; | |||||
| } | |||||
| }; | }; | ||||
| static StringRefNull identifier_suffix(eCustomDataType data_type) | static StringRefNull identifier_suffix(eCustomDataType data_type) | ||||
| { | { | ||||
| switch (data_type) { | switch (data_type) { | ||||
| case CD_PROP_BOOL: | case CD_PROP_BOOL: | ||||
| return "Bool"; | return "Bool"; | ||||
| case CD_PROP_FLOAT: | case CD_PROP_FLOAT: | ||||
| ▲ Show 20 Lines • Show All 47 Lines • Show Last 20 Lines | |||||