Geometry Nodes: fallback to point domain in viewer instead of corners

For people it's usually unexpected that the node uses the corner domain because
one thinks about the points in most cases.
This commit is contained in:
Jacques Lucke 2022-12-08 13:09:17 +01:00
parent 4dbb8e96c2
commit a84384a56f
1 changed files with 1 additions and 2 deletions

View File

@ -569,8 +569,7 @@ class LazyFunctionForViewerNode : public LazyFunction {
used_domain = *detected_domain;
}
else {
used_domain = type == GEO_COMPONENT_TYPE_MESH ? ATTR_DOMAIN_CORNER :
ATTR_DOMAIN_POINT;
used_domain = ATTR_DOMAIN_POINT;
}
}
bke::try_capture_field_on_geometry(