Geometry Nodes: Avoid Face Corner domain as prefer for Blur Attribute #113905

Merged
Hans Goudey merged 1 commits from mod_moder/blender:tix_avoid_cornder into main 2023-10-18 20:11:54 +02:00
1 changed files with 6 additions and 1 deletions

View File

@ -485,7 +485,12 @@ class BlurAttributeFieldInput final : public bke::GeometryFieldInput {
std::optional<eAttrDomain> preferred_domain(const GeometryComponent &component) const override
{
return bke::try_detect_field_domain(component, value_field_);
const std::optional<eAttrDomain> domain = bke::try_detect_field_domain(component,
value_field_);
if (domain.has_value() && *domain == ATTR_DOMAIN_CORNER) {
return ATTR_DOMAIN_POINT;
}
return domain;
}
};