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:
Hans Goudey 2021-03-26 11:38:46 -04:00
parent 252c87b9e8
commit 3d25669486
1 changed files with 1 additions and 1 deletions

View File

@ -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 {};