[Bf-blender-cvs] [f1b16f3ceb4] geometry-nodes-simulation: Fix: ignore unavailable sockets linked to multi-input socket

Iliya Katueshenock noreply at git.blender.org
Mon Dec 19 19:05:22 CET 2022


Commit: f1b16f3ceb440e77afe1f79f657cb41fbd54e252
Author: Iliya Katueshenock
Date:   Thu Dec 15 19:32:30 2022 +0100
Branches: geometry-nodes-simulation
https://developer.blender.org/rBf1b16f3ceb440e77afe1f79f657cb41fbd54e252

Fix: ignore unavailable sockets linked to multi-input socket

Differential Revision: https://developer.blender.org/D16784

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

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 05bb0af22a2..9ee23d31980 100644
--- a/source/blender/nodes/intern/geometry_nodes_lazy_function.cc
+++ b/source/blender/nodes/intern/geometry_nodes_lazy_function.cc
@@ -1148,10 +1148,11 @@ struct GeometryNodesLazyFunctionGraphBuilder {
             if (multi_input_link == link) {
               break;
             }
-            if (!(multi_input_link->is_muted() ||
-                  nodeIsDanglingReroute(&btree_, multi_input_link->fromnode))) {
-              link_index++;
+            if (multi_input_link->is_muted() || !multi_input_link->fromsock->is_available() ||
+                nodeIsDanglingReroute(&btree_, multi_input_link->fromnode)) {
+              continue;
             }
+            link_index++;
           }
           if (to_bsocket.owner_node().is_muted()) {
             if (link_index == 0) {



More information about the Bf-blender-cvs mailing list