Fix: sample index node outputs default value

Error in rBb5105085139227a713f154446ff6a3255cb8be99.
This commit is contained in:
Jacques Lucke 2023-01-17 18:29:25 +01:00
parent 543bf28fb1
commit 34326fec02

@ -323,7 +323,7 @@ static void node_geo_exec(GeoNodeExecParams params)
const GVArray &data = evaluator.get_evaluated(0);
BUFFER_FOR_CPP_TYPE_VALUE(cpp_type, buffer);
data.get_to_uninitialized(index, buffer);
output_field = fn::make_constant_field(cpp_type, cpp_type.default_value());
output_field = fn::make_constant_field(cpp_type, buffer);
cpp_type.destruct(buffer);
}
else {