Differential D11003 Diff 36252 source/blender/nodes/geometry/nodes/node_geo_attribute_separate_xyz.cc
Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/geometry/nodes/node_geo_attribute_separate_xyz.cc
| Show First 20 Lines • Show All 56 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| NodeAttributeSeparateXYZ *node_storage = (NodeAttributeSeparateXYZ *)node->storage; | NodeAttributeSeparateXYZ *node_storage = (NodeAttributeSeparateXYZ *)node->storage; | ||||
| update_attribute_input_socket_availabilities( | update_attribute_input_socket_availabilities( | ||||
| *node, "Vector", (GeometryNodeAttributeInputMode)node_storage->input_type); | *node, "Vector", (GeometryNodeAttributeInputMode)node_storage->input_type); | ||||
| } | } | ||||
| static void extract_input(const int index, const Span<float3> &input, MutableSpan<float> result) | static void extract_input(const int index, const Span<float3> &input, MutableSpan<float> result) | ||||
| { | { | ||||
| for (const int i : result.index_range()) { | for (const int i : iter_indices(result)) { | ||||
| /* Get the component of the float3. (0: X, 1: Y, 2: Z). */ | /* Get the component of the float3. (0: X, 1: Y, 2: Z). */ | ||||
| const float component = input[i][index]; | const float component = input[i][index]; | ||||
| result[i] = component; | result[i] = component; | ||||
| } | } | ||||
| } | } | ||||
| static AttributeDomain get_result_domain(const GeometryComponent &component, | static AttributeDomain get_result_domain(const GeometryComponent &component, | ||||
| const GeoNodeExecParams ¶ms, | const GeoNodeExecParams ¶ms, | ||||
| ▲ Show 20 Lines • Show All 99 Lines • Show Last 20 Lines | |||||