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:
committed by
Hans Goudey
parent
72d3d7f7f4
commit
3b44fd3655
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user