[Bf-blender-cvs] [0446c9c8756] blender-v3.1-release: Fix: Incorrect default distance for merge by distance node

Hans Goudey noreply at git.blender.org
Fri Feb 4 19:21:47 CET 2022


Commit: 0446c9c87564ce233a8cb58a69c9ffa4a6f78969
Author: Hans Goudey
Date:   Fri Feb 4 12:21:01 2022 -0600
Branches: blender-v3.1-release
https://developer.blender.org/rB0446c9c87564ce233a8cb58a69c9ffa4a6f78969

Fix: Incorrect default distance for merge by distance node

This was an oversight in the patch that added this node,
the default merge distance is meant to be the same as the weld
modifier, 0.001m, meaning by in most situations it removes
vertices generally at the same location.

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

M	source/blender/nodes/geometry/nodes/node_geo_merge_by_distance.cc

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

diff --git a/source/blender/nodes/geometry/nodes/node_geo_merge_by_distance.cc b/source/blender/nodes/geometry/nodes/node_geo_merge_by_distance.cc
index deb149fd0f0..3c790079b5b 100644
--- a/source/blender/nodes/geometry/nodes/node_geo_merge_by_distance.cc
+++ b/source/blender/nodes/geometry/nodes/node_geo_merge_by_distance.cc
@@ -26,7 +26,7 @@ static void node_declare(NodeDeclarationBuilder &b)
   b.add_input<decl::Geometry>(N_("Geometry"))
       .supported_type({GEO_COMPONENT_TYPE_POINT_CLOUD, GEO_COMPONENT_TYPE_MESH});
   b.add_input<decl::Bool>(N_("Selection")).default_value(true).hide_value().supports_field();
-  b.add_input<decl::Float>(N_("Distance")).default_value(0.1f).min(0.0f).subtype(PROP_DISTANCE);
+  b.add_input<decl::Float>(N_("Distance")).default_value(0.001f).min(0.0f).subtype(PROP_DISTANCE);
   b.add_output<decl::Geometry>(N_("Geometry"));
 }



More information about the Bf-blender-cvs mailing list