[Bf-blender-cvs] [e981a7de31d] master: Missing from last commit
Campbell Barton
noreply at git.blender.org
Wed Jan 3 11:55:19 CET 2018
Commit: e981a7de31d1ba0d24c8126b02d166dce67e45f0
Author: Campbell Barton
Date: Wed Jan 3 22:01:40 2018 +1100
Branches: master
https://developer.blender.org/rBe981a7de31d1ba0d24c8126b02d166dce67e45f0
Missing from last commit
===================================================================
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 3e7804a57e0..dd3a2bf6fe2 100644
--- a/source/blender/makesrna/intern/rna_ui_api.c
+++ b/source/blender/makesrna/intern/rna_ui_api.c
@@ -702,8 +702,9 @@ void RNA_api_ui_layout(StructRNA *srna)
RNA_def_string(func, "unlink", NULL, 0, "", "Operator identifier to unlink the ID block");
RNA_def_int(func, "rows", 0, 0, INT_MAX, "Number of thumbnail preview rows to display", "", 0, INT_MAX);
RNA_def_int(func, "cols", 0, 0, INT_MAX, "Number of thumbnail preview columns to display", "", 0, INT_MAX);
- RNA_def_enum(func, "filter", id_template_filter_items, 0, "", "Optionally limit the items which can be selected");
-
+ RNA_def_enum(func, "filter", id_template_filter_items, UI_TEMPLATE_ID_FILTER_ALL,
+ "", "Optionally limit the items which can be selected");
+
func = RNA_def_function(srna, "template_any_ID", "rna_uiTemplateAnyID");
parm = RNA_def_pointer(func, "data", "AnyType", "", "Data from which to take property");
RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED | PARM_RNAPTR);
More information about the Bf-blender-cvs
mailing list