[Bf-blender-cvs] [e9ba64c] workspaces: Fix incorrect RNA function parameter flags
Julian Eisel
noreply at git.blender.org
Thu Dec 22 14:06:12 CET 2016
Commit: e9ba64cb9d2a28ac0cf38c3e3085fcb308628679
Author: Julian Eisel
Date: Thu Dec 22 14:04:58 2016 +0100
Branches: workspaces
https://developer.blender.org/rBe9ba64cb9d2a28ac0cf38c3e3085fcb308628679
Fix incorrect RNA function parameter flags
===================================================================
M source/blender/makesrna/intern/rna_ui_api.c
===================================================================
diff --git a/source/blender/makesrna/intern/rna_ui_api.c b/source/blender/makesrna/intern/rna_ui_api.c
index 7adc59f..b78e829 100644
--- a/source/blender/makesrna/intern/rna_ui_api.c
+++ b/source/blender/makesrna/intern/rna_ui_api.c
@@ -651,7 +651,7 @@ void RNA_api_ui_layout(StructRNA *srna)
api_ui_item_rna_common(func);
parm = RNA_def_pointer(func, "search_data", "AnyType", "", "Data from which to take collection to search in, "
"uses main ID collection if not set");
- RNA_def_parameter_flags(parm, 0, PARM_REQUIRED | PARM_RNAPTR);
+ RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_RNAPTR);
parm = RNA_def_string(func, "search_property", NULL, 0, "", "Identifier of search collection property, "
"uses main ID collection if not set");
RNA_def_string(func, "new", NULL, 0, "", "Operator identifier to create a new ID block");
@@ -663,7 +663,7 @@ void RNA_api_ui_layout(StructRNA *srna)
api_ui_item_rna_common(func);
parm = RNA_def_pointer(func, "search_data", "AnyType", "", "Data from which to take collection to search in, "
"uses main ID collection if not set");
- RNA_def_parameter_flags(parm, 0, PARM_REQUIRED | PARM_RNAPTR);
+ RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_RNAPTR);
parm = RNA_def_string(func, "search_property", NULL, 0, "", "Identifier of search collection property, "
"uses main ID collection if not set");
RNA_def_string(func, "new", NULL, 0, "", "Operator identifier to create a new ID block");
More information about the Bf-blender-cvs
mailing list