[Bf-blender-cvs] [595c753e922] temp-modifiers-instancing: Fix T82616: crash when using vector math node
Jacques Lucke
noreply at git.blender.org
Wed Nov 11 18:03:11 CET 2020
Commit: 595c753e9227668941d1f691b55d231cce11a274
Author: Jacques Lucke
Date: Wed Nov 11 18:03:04 2020 +0100
Branches: temp-modifiers-instancing
https://developer.blender.org/rB595c753e9227668941d1f691b55d231cce11a274
Fix T82616: 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 f5f67ee222f..ce5d2984735 100644
--- a/source/blender/modifiers/intern/MOD_nodes.cc
+++ b/source/blender/modifiers/intern/MOD_nodes.cc
@@ -298,9 +298,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