Commit: 97e00d60916eb8928a324bbfd5326de16a737863
Author: Lukas Tönne
Date:   Sun Jan 3 10:55:30 2016 +0100
Branches: object_nodes
https://developer.blender.org/rB97e00d60916eb8928a324bbfd5326de16a737863

Fix for broken pynodes: BVM functions in NodeTree must be optional.

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

M       source/blender/makesrna/intern/rna_nodetree.c

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

diff --git a/source/blender/makesrna/intern/rna_nodetree.c 
b/source/blender/makesrna/intern/rna_nodetree.c
index a370498..c7c086d 100644
--- a/source/blender/makesrna/intern/rna_nodetree.c
+++ b/source/blender/makesrna/intern/rna_nodetree.c
@@ -8216,20 +8216,20 @@ static void rna_def_nodetree(BlenderRNA *brna)
        /* Depsgraph Update Callbacks */
        func = RNA_def_function(srna, "bvm_compile_dependencies", NULL);
        RNA_def_function_ui_description(func, "Dependencies that require a 
recompile");
-       RNA_def_function_flag(func, FUNC_REGISTER);
+       RNA_def_function_flag(func, FUNC_REGISTER_OPTIONAL);
        parm = RNA_def_pointer(func, "depsnode", "DepsNode", "Depsgraph Node", 
"Node in the dependency graph");
        RNA_def_property_flag(parm, PROP_REQUIRED | PROP_NEVER_NULL);
        
        func = RNA_def_function(srna, "bvm_eval_dependencies", NULL);
        RNA_def_function_ui_description(func, "Dependencies that require 
evaluation");
-       RNA_def_function_flag(func, FUNC_REGISTER);
+       RNA_def_function_flag(func, FUNC_REGISTER_OPTIONAL);
        parm = RNA_def_pointer(func, "depsnode", "DepsNode", "Depsgraph Node", 
"Node in the dependency graph");
        RNA_def_property_flag(parm, PROP_REQUIRED | PROP_NEVER_NULL);
        
        /* BlenVM compile */
        func = RNA_def_function(srna, "bvm_compile", NULL);
        RNA_def_function_ui_description(func, "Convert node settings to blenvm 
instructions");
-       RNA_def_function_flag(func, FUNC_REGISTER);
+       RNA_def_function_flag(func, FUNC_REGISTER_OPTIONAL);
        parm = RNA_def_pointer(func, "graph", "BVMNodeGraph", "Graph", "");
        RNA_def_property_flag(parm, PROP_REQUIRED | PROP_NEVER_NULL);
 }

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to