[Bf-blender-cvs] [5f852a4] master: Cleanup: bad (harmless) usage of PARM_PYFUNC_OPTIONAL in new ID.make_local RNA definition.
Bastien Montagne
noreply at git.blender.org
Mon Dec 12 15:59:38 CET 2016
Commit: 5f852a4324212221500d11b2c7594f5e0ca894c6
Author: Bastien Montagne
Date: Mon Dec 12 15:56:00 2016 +0100
Branches: master
https://developer.blender.org/rB5f852a4324212221500d11b2c7594f5e0ca894c6
Cleanup: bad (harmless) usage of PARM_PYFUNC_OPTIONAL in new ID.make_local RNA definition.
PARM_PYFUNC_OPTIONAL is only useful in definition of callbacks for
registrable types...
===================================================================
M source/blender/makesrna/intern/rna_ID.c
===================================================================
diff --git a/source/blender/makesrna/intern/rna_ID.c b/source/blender/makesrna/intern/rna_ID.c
index ee43a61..671902c 100644
--- a/source/blender/makesrna/intern/rna_ID.c
+++ b/source/blender/makesrna/intern/rna_ID.c
@@ -1023,7 +1023,6 @@ static void rna_def_ID(BlenderRNA *brna)
parm = RNA_def_boolean(func, "clear_proxy", true, "",
"Whether to clear proxies (the default behavior, "
"note that if object has to be duplicated to be made local, proxies are always cleared)");
- RNA_def_property_flag(parm, PARM_PYFUNC_OPTIONAL);
parm = RNA_def_pointer(func, "id", "ID", "", "This ID, or the new ID if it was copied");
RNA_def_function_return(func, parm);
More information about the Bf-blender-cvs
mailing list