Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/intern/geometry_nodes_log.cc
| Show First 20 Lines • Show All 64 Lines • ▼ Show 20 Lines | GeometryInfoLog::GeometryInfoLog(const GeometrySet &geometry_set) | ||||
| Set<StringRef> names; | Set<StringRef> names; | ||||
| geometry_set.attribute_foreach( | geometry_set.attribute_foreach( | ||||
| all_component_types, | all_component_types, | ||||
| true, | true, | ||||
| [&](const bke::AttributeIDRef &attribute_id, | [&](const bke::AttributeIDRef &attribute_id, | ||||
| const bke::AttributeMetaData &meta_data, | const bke::AttributeMetaData &meta_data, | ||||
| const GeometryComponent & /*component*/) { | const GeometryComponent & /*component*/) { | ||||
| if (attribute_id.is_named() && names.add(attribute_id.name())) { | if (!attribute_id.is_anonymous() && names.add(attribute_id.name())) { | ||||
| this->attributes.append({attribute_id.name(), meta_data.domain, meta_data.data_type}); | this->attributes.append({attribute_id.name(), meta_data.domain, meta_data.data_type}); | ||||
| } | } | ||||
| }); | }); | ||||
| for (const GeometryComponent *component : geometry_set.get_components_for_read()) { | for (const GeometryComponent *component : geometry_set.get_components_for_read()) { | ||||
| this->component_types.append(component->type()); | this->component_types.append(component->type()); | ||||
| switch (component->type()) { | switch (component->type()) { | ||||
| case GEO_COMPONENT_TYPE_MESH: { | case GEO_COMPONENT_TYPE_MESH: { | ||||
| ▲ Show 20 Lines • Show All 503 Lines • Show Last 20 Lines | |||||