Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/geometry/nodes/node_geo_attribute_capture.cc
| Show First 20 Lines • Show All 111 Lines • ▼ Show 20 Lines | static void try_capture_field_on_geometry(GeometryComponent &component, | ||||
| output_attribute.save(); | output_attribute.save(); | ||||
| } | } | ||||
| static void geo_node_attribute_capture_exec(GeoNodeExecParams params) | static void geo_node_attribute_capture_exec(GeoNodeExecParams params) | ||||
| { | { | ||||
| GeometrySet geometry_set = params.extract_input<GeometrySet>("Geometry"); | GeometrySet geometry_set = params.extract_input<GeometrySet>("Geometry"); | ||||
| geometry_set = bke::geometry_set_realize_instances(geometry_set); | |||||
| const bNode &node = params.node(); | const bNode &node = params.node(); | ||||
| const NodeGeometryAttributeCapture &storage = *(const NodeGeometryAttributeCapture *) | const NodeGeometryAttributeCapture &storage = *(const NodeGeometryAttributeCapture *) | ||||
| node.storage; | node.storage; | ||||
| const CustomDataType data_type = static_cast<CustomDataType>(storage.data_type); | const CustomDataType data_type = static_cast<CustomDataType>(storage.data_type); | ||||
| const AttributeDomain domain = static_cast<AttributeDomain>(storage.domain); | const AttributeDomain domain = static_cast<AttributeDomain>(storage.domain); | ||||
| GField field; | GField field; | ||||
| switch (data_type) { | switch (data_type) { | ||||
| ▲ Show 20 Lines • Show All 81 Lines • Show Last 20 Lines | |||||