Fix #112184: Adapt optimized case of Points of Curve node for domain #112185
|
@ -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);
|
||||
}
|
||||
|
||||
mod_moder marked this conversation as resolved
Outdated
|
||||
uint64_t hash() const final
|
||||
|
|
Loading…
Reference in New Issue
This can use
curves.adapt_domain
directly.