Cleanup: Geometry Nodes: Allow using "Auto" domain to avoid adapting
Now that we have `ATTR_DOMAIN_AUTO`, it makes sense to use it to skip automatic domain interpolation. This can make code that depends on the non-interpolated domain of the attribute a bit simpler.
This commit is contained in:
parent
252c87b9e8
commit
3d25669486
|
@ -893,7 +893,7 @@ ReadAttributePtr GeometryComponent::attribute_try_get_for_read(
|
|||
return {};
|
||||
}
|
||||
|
||||
if (attribute->domain() != domain) {
|
||||
if (domain != ATTR_DOMAIN_AUTO && attribute->domain() != domain) {
|
||||
attribute = this->attribute_try_adapt_domain(std::move(attribute), domain);
|
||||
if (!attribute) {
|
||||
return {};
|
||||
|
|
Loading…
Reference in New Issue