[Bf-blender-cvs] [2984fb2b491] geometry-nodes: Geometry Nodes: crash when using Vector Math node
Jacques Lucke
noreply at git.blender.org
Thu Nov 12 13:30:50 CET 2020
Commit: 2984fb2b4917fbc9c64656746e3d5bb9a1955f13
Author: Jacques Lucke
Date: Thu Nov 12 11:51:12 2020 +0100
Branches: geometry-nodes
https://developer.blender.org/rB2984fb2b4917fbc9c64656746e3d5bb9a1955f13
Geometry Nodes: crash when using Vector Math node
===================================================================
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 41add5ae3e7..c3645f38481 100644
--- a/source/blender/modifiers/intern/MOD_nodes.cc
+++ b/source/blender/modifiers/intern/MOD_nodes.cc
@@ -274,9 +274,11 @@ class GeometryNodesEvaluator {
value.destruct();
}
for (const int i : node.outputs().index_range()) {
- GMutablePointer value = output_data[i];
- node_outputs.set_by_move(node.output(i).identifier(), value);
- value.destruct();
+ if (node.output(i).is_available()) {
+ GMutablePointer value = output_data[i];
+ node_outputs.set_by_move(node.output(i).identifier(), value);
+ value.destruct();
+ }
}
}
More information about the Bf-blender-cvs
mailing list