[Bf-blender-cvs] [1f2ce121a30] geometry-nodes: Fix T82773: node with unavailable output is handled incorrectly

Jacques Lucke noreply at git.blender.org
Fri Nov 20 11:50:25 CET 2020


Commit: 1f2ce121a30821de97760151e957c19088be213b
Author: Jacques Lucke
Date:   Fri Nov 20 11:50:13 2020 +0100
Branches: geometry-nodes
https://developer.blender.org/rB1f2ce121a30821de97760151e957c19088be213b

Fix T82773: node with unavailable output is handled incorrectly

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

M	source/blender/modifiers/intern/MOD_nodes.cc

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

diff --git a/source/blender/modifiers/intern/MOD_nodes.cc b/source/blender/modifiers/intern/MOD_nodes.cc
index af6b879a17c..7aafcfbed00 100644
--- a/source/blender/modifiers/intern/MOD_nodes.cc
+++ b/source/blender/modifiers/intern/MOD_nodes.cc
@@ -305,11 +305,13 @@ class GeometryNodesEvaluator {
     for (GMutablePointer value : input_data) {
       value.destruct();
     }
+    int output_index = 0;
     for (const int i : node.outputs().index_range()) {
       if (node.output(i).is_available()) {
-        GMutablePointer value = output_data[i];
+        GMutablePointer value = output_data[output_index];
         params.set_output_by_move(node.output(i).identifier(), value);
         value.destruct();
+        output_index++;
       }
     }
   }



More information about the Bf-blender-cvs mailing list