Fix #112184: Adapt optimized case of Points of Curve node for domain

Fix mistake in 000e722c7d. If domain is not
the curve, then result should be adopted to domain.

Pull Request: https://projects.blender.org/blender/blender/pulls/112185
This commit is contained in:
Iliya Katueshenock
2023-09-09 19:16:10 +02:00
committed by Hans Goudey
parent 72d3d7f7f4
commit 3b44fd3655

View File

@@ -195,10 +195,10 @@ class CurveStartPointInput final : public bke::CurvesFieldInput {
}
GVArray get_varray_for_context(const bke::CurvesGeometry &curves,
const eAttrDomain /*domain*/,
const eAttrDomain domain,
const IndexMask & /*mask*/) const final
{
return VArray<int>::ForSpan(curves.offsets());
return curves.adapt_domain(VArray<int>::ForSpan(curves.offsets()), ATTR_DOMAIN_CURVE, domain);
}
uint64_t hash() const final