[Bf-blender-cvs] [8a4fbdc] object_nodes: Use the default output value for graph returns in case they remain unlinked.
Lukas Tönne
noreply at git.blender.org
Tue Nov 24 09:44:28 CET 2015
Commit: 8a4fbdcbb4097c4d36c10a84f4ead5063dac18d7
Author: Lukas Tönne
Date: Thu Nov 19 16:12:36 2015 +0100
Branches: object_nodes
https://developer.blender.org/rB8a4fbdcbb4097c4d36c10a84f4ead5063dac18d7
Use the default output value for graph returns in case they remain unlinked.
In case of meshes this will always be an empty mesh, but it at least gives a valid return value.
===================================================================
M source/blender/blenvm/compile/bvm_codegen.cc
===================================================================
diff --git a/source/blender/blenvm/compile/bvm_codegen.cc b/source/blender/blenvm/compile/bvm_codegen.cc
index c807a16..177242d 100644
--- a/source/blender/blenvm/compile/bvm_codegen.cc
+++ b/source/blender/blenvm/compile/bvm_codegen.cc
@@ -392,7 +392,7 @@ Function *BVMCompiler::codegen_function(const NodeGraph &graph)
rval.stack_offset = socket_index[link_key];
}
else {
- rval.stack_offset = assign_stack_index(rval.typedesc);
+ rval.stack_offset = codegen_value(output.default_value);
}
}
More information about the Bf-blender-cvs
mailing list