Differential D14618 Diff 50328 source/blender/nodes/geometry/nodes/node_geo_store_named_attribute.cc
Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/geometry/nodes/node_geo_store_named_attribute.cc
| Show First 20 Lines • Show All 151 Lines • ▼ Show 20 Lines | case CD_PROP_BOOL: | ||||
| break; | break; | ||||
| case CD_PROP_INT32: | case CD_PROP_INT32: | ||||
| field = params.get_input<Field<int>>("Value_Int"); | field = params.get_input<Field<int>>("Value_Int"); | ||||
| break; | break; | ||||
| default: | default: | ||||
| break; | break; | ||||
| } | } | ||||
| if (!name.empty()) { | |||||
| params.used_named_attribute(name, NamedAttributeUsage::Write); | |||||
| } | |||||
| /* Run on the instances component separately to only affect the top level of instances. */ | /* Run on the instances component separately to only affect the top level of instances. */ | ||||
| if (domain == ATTR_DOMAIN_INSTANCE) { | if (domain == ATTR_DOMAIN_INSTANCE) { | ||||
| if (geometry_set.has_instances()) { | if (geometry_set.has_instances()) { | ||||
| GeometryComponent &component = geometry_set.get_component_for_write( | GeometryComponent &component = geometry_set.get_component_for_write( | ||||
| GEO_COMPONENT_TYPE_INSTANCES); | GEO_COMPONENT_TYPE_INSTANCES); | ||||
| try_capture_field_on_geometry(component, name, domain, field); | try_capture_field_on_geometry(component, name, domain, field); | ||||
| } | } | ||||
| } | } | ||||
| Show All 37 Lines | |||||