Commit: a6cc53876f88b13e4a9a55f69a7e77cd8f1c74bd
Author: Campbell Barton
Date:   Tue Aug 28 13:42:30 2018 +1000
Branches: blender2.8
https://developer.blender.org/rBa6cc53876f88b13e4a9a55f69a7e77cd8f1c74bd

RNA: make template_list list_id a required arg

Prepare for keyword only args.

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

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 9c825f3b158..bafc7dc69c1 100644
--- a/source/blender/makesrna/intern/rna_ui_api.c
+++ b/source/blender/makesrna/intern/rna_ui_api.c
@@ -1006,10 +1006,11 @@ void RNA_api_ui_layout(StructRNA *srna)
        parm = RNA_def_string(func, "list_id", NULL, 0, "",
                              "Identifier of this list widget (mandatory when 
using default \"" UI_UL_DEFAULT_CLASS_NAME
                              "\" class). "
-                             "If this is set, the uilist gets a custom ID, 
otherwise it takes the "
+                             "If this not an empty string, the uilist gets a 
custom ID, otherwise it takes the "
                              "name of the class used to define the uilist (for 
example, if the "
                              "class name is \"OBJECT_UL_vgroups\", and list_id 
is not set by the "
                              "script, then bl_idname = 
\"OBJECT_UL_vgroups\")");
+       RNA_def_parameter_flags(parm, 0, PARM_REQUIRED);
        parm = RNA_def_pointer(func, "dataptr", "AnyType", "", "Data from which 
to take the Collection property");
        RNA_def_parameter_flags(parm, 0, PARM_REQUIRED | PARM_RNAPTR);
        parm = RNA_def_string(func, "propname", NULL, 0, "", "Identifier of the 
Collection property in data");

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

Reply via email to