diff options
author | Thomas Dinges <blender@dingto.org> | 2010-07-04 13:42:00 +0400 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2010-07-04 13:42:00 +0400 |
commit | ce94f52dbc1f18b805436313d26cdcef804622e9 (patch) | |
tree | e80eb3ce48eecbe17fa7bd1704ca1379b9236ed1 /source/blender/makesrna/intern/rna_ui_api.c | |
parent | db4d317f6be28cf5141537f48449b70f0a3a38b2 (diff) |
Fix for [#22714] Constraints stack : move up and move down buttons problem
* Constraint template now uses 2 rows as well, when the area width is small.
* UI Code could use some code/layout cleanup still, will look into that soon.
Diffstat (limited to 'source/blender/makesrna/intern/rna_ui_api.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_ui_api.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_ui_api.c b/source/blender/makesrna/intern/rna_ui_api.c index 29d871dd66e..16864985289 100644 --- a/source/blender/makesrna/intern/rna_ui_api.c +++ b/source/blender/makesrna/intern/rna_ui_api.c @@ -317,6 +317,7 @@ void RNA_api_ui_layout(StructRNA *srna) RNA_def_property_flag(parm, PROP_REQUIRED|PROP_RNAPTR|PROP_NEVER_NULL); parm= RNA_def_pointer(func, "layout", "UILayout", "", "Sub-layout to put items in."); RNA_def_function_return(func, parm); + RNA_def_boolean(func, "compact", 0, "", "Show a smaller version of the template, split on two lines."); func= RNA_def_function(srna, "template_preview", "uiTemplatePreview"); parm= RNA_def_pointer(func, "id", "ID", "", "ID datablock."); |