Changeset View
Changeset View
Standalone View
Standalone View
source/blender/modifiers/intern/MOD_nodes.cc
| Show First 20 Lines • Show All 911 Lines • ▼ Show 20 Lines | static void store_output_value_in_geometry(GeometrySet &geometry_set, | ||||
| if (geometry_set.has_pointcloud()) { | if (geometry_set.has_pointcloud()) { | ||||
| PointCloudComponent &component = geometry_set.get_component_for_write<PointCloudComponent>(); | PointCloudComponent &component = geometry_set.get_component_for_write<PointCloudComponent>(); | ||||
| store_field_on_geometry_component(component, attribute_name, domain, field); | store_field_on_geometry_component(component, attribute_name, domain, field); | ||||
| } | } | ||||
| if (geometry_set.has_curve()) { | if (geometry_set.has_curve()) { | ||||
| CurveComponent &component = geometry_set.get_component_for_write<CurveComponent>(); | CurveComponent &component = geometry_set.get_component_for_write<CurveComponent>(); | ||||
| store_field_on_geometry_component(component, attribute_name, domain, field); | store_field_on_geometry_component(component, attribute_name, domain, field); | ||||
| } | } | ||||
| if (geometry_set.has_instances()) { | |||||
| InstancesComponent &component = geometry_set.get_component_for_write<InstancesComponent>(); | |||||
| store_field_on_geometry_component(component, attribute_name, domain, field); | |||||
| } | |||||
| } | } | ||||
| /** | /** | ||||
| * Evaluate a node group to compute the output geometry. | * Evaluate a node group to compute the output geometry. | ||||
| */ | */ | ||||
| static GeometrySet compute_geometry(const DerivedNodeTree &tree, | static GeometrySet compute_geometry(const DerivedNodeTree &tree, | ||||
| Span<const NodeRef *> group_input_nodes, | Span<const NodeRef *> group_input_nodes, | ||||
| const NodeRef &output_node, | const NodeRef &output_node, | ||||
| ▲ Show 20 Lines • Show All 609 Lines • Show Last 20 Lines | |||||