Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Tönne <lukas.toenne@gmail.com>2021-07-30 11:13:47 +0300
committerLukas Tönne <lukas.toenne@gmail.com>2021-07-30 11:13:47 +0300
commit778a07a30b10a1093e65eb789eac613c6a4bbbc4 (patch)
treeb9f5a91f3e2c021660c2f7e422a7dd751448220c
parent8ede468a5d0e5f9d40d1883b7a13ed13b2d07c26 (diff)
Removing links when disabling socket is not necessary.geometry-nodes-closest-points
-rw-r--r--source/blender/nodes/geometry/nodes/node_geo_attribute_range_query.cc3
1 files changed, 0 insertions, 3 deletions
diff --git a/source/blender/nodes/geometry/nodes/node_geo_attribute_range_query.cc b/source/blender/nodes/geometry/nodes/node_geo_attribute_range_query.cc
index c841eaa45b6..1f56a94c55a 100644
--- a/source/blender/nodes/geometry/nodes/node_geo_attribute_range_query.cc
+++ b/source/blender/nodes/geometry/nodes/node_geo_attribute_range_query.cc
@@ -123,9 +123,6 @@ static void geo_node_attribute_range_query_update(bNodeTree *ntree, bNode *node)
/* Disable the source geometry socket when usign the same geometry for points and queries. */
bNodeSocket *source_geo_socket = nodeFindSocket(node, SOCK_IN, "Source Geometry");
bool use_same_geometry = (node->custom1 & GEO_NODE_ATTRIBUTE_RANGE_QUERY_USE_SAME_GEOMETRY);
- if (use_same_geometry) {
- nodeRemSocketLinks(ntree, source_geo_socket);
- }
nodeSetSocketAvailability(source_geo_socket, !use_same_geometry);
}