Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiika Hamalainen <blender@miikah.org>2011-08-03 22:47:20 +0400
committerMiika Hamalainen <blender@miikah.org>2011-08-03 22:47:20 +0400
commitdaea8a28ae11131c86d98f20b819ad33036b875a (patch)
tree85faba3c1aaa0c45db61c714e1337c8c008c3adc /source/blender/editors/interface/interface_templates.c
parent8394f65d4a6019ae623fe32268a769463a189b9e (diff)
parent79c87852d2a2b07ba3cb411e00fd0fb4aaee008a (diff)
Merge with trunk r39000
Diffstat (limited to 'source/blender/editors/interface/interface_templates.c')
-rw-r--r--source/blender/editors/interface/interface_templates.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/editors/interface/interface_templates.c b/source/blender/editors/interface/interface_templates.c
index 3c29369c6ac..cadcf959ace 100644
--- a/source/blender/editors/interface/interface_templates.c
+++ b/source/blender/editors/interface/interface_templates.c
@@ -2224,7 +2224,7 @@ void uiTemplateList(uiLayout *layout, bContext *C, PointerRNA *ptr, const char *
/* create list items */
RNA_PROP_BEGIN(ptr, itemptr, prop) {
/* create button */
- if(i == 9)
+ if(!(i % 9))
row= uiLayoutRow(col, 0);
icon= list_item_icon_get(C, &itemptr, rnaicon, 1);
@@ -2239,7 +2239,6 @@ void uiTemplateList(uiLayout *layout, bContext *C, PointerRNA *ptr, const char *
}
else if(listtype == 'c') {
/* compact layout */
- found= 0;
row= uiLayoutRow(layout, 1);