Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2021-11-21 19:37:35 +0300
committerHans Goudey <h.goudey@me.com>2021-11-21 19:37:35 +0300
commitfb470c256aac5dc8834cf113ca1f2beab373b8da (patch)
tree4cfb503cd33f7dac7fb7a7130a4d68005a0a75cd
parent873f6148adc7ddb30c21e9fa65197e8b633879cc (diff)
Fix T93256: Instances to points node broken after recent commit
When 97533eede444217 added the instance domain, it didn't change the domain that instance attributes are read from in this node.
-rw-r--r--source/blender/nodes/geometry/nodes/node_geo_instances_to_points.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/nodes/geometry/nodes/node_geo_instances_to_points.cc b/source/blender/nodes/geometry/nodes/node_geo_instances_to_points.cc
index c3955426e69..f8c146833ba 100644
--- a/source/blender/nodes/geometry/nodes/node_geo_instances_to_points.cc
+++ b/source/blender/nodes/geometry/nodes/node_geo_instances_to_points.cc
@@ -51,9 +51,8 @@ static void convert_instances_to_points(GeometrySet &geometry_set,
{
const InstancesComponent &instances = *geometry_set.get_component_for_read<InstancesComponent>();
- const AttributeDomain attribute_domain = ATTR_DOMAIN_POINT;
- GeometryComponentFieldContext field_context{instances, attribute_domain};
- const int domain_size = instances.attribute_domain_size(attribute_domain);
+ GeometryComponentFieldContext field_context{instances, ATTR_DOMAIN_INSTANCE};
+ const int domain_size = instances.attribute_domain_size(ATTR_DOMAIN_INSTANCE);
fn::FieldEvaluator selection_evaluator{field_context, domain_size};
selection_evaluator.add(std::move(selection_field));