[Bf-blender-cvs] [a84384a56ff] master: Geometry Nodes: fallback to point domain in viewer instead of corners

Jacques Lucke noreply at git.blender.org
Thu Dec 8 13:09:58 CET 2022


Commit: a84384a56ff9cbadda15b76d380f69570ab85936
Author: Jacques Lucke
Date:   Thu Dec 8 13:09:17 2022 +0100
Branches: master
https://developer.blender.org/rBa84384a56ff9cbadda15b76d380f69570ab85936

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.

===================================================================

M	source/blender/nodes/intern/geometry_nodes_lazy_function.cc

===================================================================

diff --git a/source/blender/nodes/intern/geometry_nodes_lazy_function.cc b/source/blender/nodes/intern/geometry_nodes_lazy_function.cc
index def3fae4ce7..d7d633353bd 100644
--- a/source/blender/nodes/intern/geometry_nodes_lazy_function.cc
+++ b/source/blender/nodes/intern/geometry_nodes_lazy_function.cc
@@ -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(



More information about the Bf-blender-cvs mailing list