[Bf-blender-cvs] [ab4325c] master: Have to allow DNA writes in node insert_link callback in order to do anything useful with it.
Lukas Tönne
noreply at git.blender.org
Fri Dec 4 10:26:09 CET 2015
Commit: ab4325c07a397cf06dc0c46a992cf0d7eb2914c5
Author: Lukas Tönne
Date: Fri Dec 4 10:25:31 2015 +0100
Branches: master
https://developer.blender.org/rBab4325c07a397cf06dc0c46a992cf0d7eb2914c5
Have to allow DNA writes in node insert_link callback in order to do anything useful with it.
===================================================================
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 51592ec..56b4b3e 100644
--- a/source/blender/makesrna/intern/rna_nodetree.c
+++ b/source/blender/makesrna/intern/rna_nodetree.c
@@ -7728,7 +7728,7 @@ static void rna_def_node(BlenderRNA *brna)
/* insert_link */
func = RNA_def_function(srna, "insert_link", NULL);
RNA_def_function_ui_description(func, "Handle creation of a link to or from the node");
- RNA_def_function_flag(func, FUNC_USE_SELF_ID | FUNC_REGISTER_OPTIONAL);
+ RNA_def_function_flag(func, FUNC_USE_SELF_ID | FUNC_REGISTER_OPTIONAL | FUNC_ALLOW_WRITE);
parm = RNA_def_pointer(func, "link", "NodeLink", "Link", "Node link that will be inserted");
RNA_def_property_flag(parm, PROP_REQUIRED | PROP_NEVER_NULL);
More information about the Bf-blender-cvs
mailing list