diff --git a/source/blender/makesrna/intern/rna_ui.cc b/source/blender/makesrna/intern/rna_ui.cc index 09f30620efa..c6caf1daae6 100644 --- a/source/blender/makesrna/intern/rna_ui.cc +++ b/source/blender/makesrna/intern/rna_ui.cc @@ -2073,12 +2073,13 @@ static void rna_def_uilist(BlenderRNA *brna) 0, "", "Identifier of property in active_data, for the active element"); + RNA_def_parameter_flags(parm, PropertyFlag(0), PARM_REQUIRED | PARM_PYFUNC_OPTIONAL); + parm = RNA_def_int( + func, "index", 0, 0, INT_MAX, "", "Index of the item in the collection", 0, INT_MAX); + RNA_def_parameter_flags(parm, PropertyFlag(0), PARM_REQUIRED); + parm = RNA_def_property(func, "flt_flag", PROP_INT, PROP_UNSIGNED); + RNA_def_property_ui_text(parm, "", "The filter-flag result for this item"); RNA_def_parameter_flags(parm, PropertyFlag(0), PARM_REQUIRED); - RNA_def_int(func, "index", 0, 0, INT_MAX, "", "Index of the item in the collection", 0, INT_MAX); - RNA_def_parameter_flags(parm, PropertyFlag(0), PARM_REQUIRED | PARM_PYFUNC_OPTIONAL); - prop = RNA_def_property(func, "flt_flag", PROP_INT, PROP_UNSIGNED); - RNA_def_property_ui_text(prop, "", "The filter-flag result for this item"); - RNA_def_parameter_flags(parm, PropertyFlag(0), PARM_REQUIRED | PARM_PYFUNC_OPTIONAL); /* draw_filter */ func = RNA_def_function(srna, "draw_filter", nullptr);