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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2010-03-23 18:31:12 +0300
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2010-03-23 18:31:12 +0300
commitf46cccedf62bc30a8ce68d7e48fa011dd37491f7 (patch)
treead2044d2f016f528e128caf9f4f882c744899c95 /source/blender/makesrna/intern/rna_ui_api.c
parentcb6d2685bd9cc092ef5e1c9bea10bb3a1577d288 (diff)
rna/py-api fix.
C functions and python used different argument order, this relied on mapping non-keyword arguments to 'REQUIRED' arguments but meant that you could not have an optional, non-keyword argument. next commit will make order of arguments consistant (currently only changed order that rna wrapped). (commit 27674 and 27683 by Campbell from render25 branch)
Diffstat (limited to 'source/blender/makesrna/intern/rna_ui_api.c')
-rw-r--r--source/blender/makesrna/intern/rna_ui_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_ui_api.c b/source/blender/makesrna/intern/rna_ui_api.c
index 0b814b38c5b..201f75c9c8c 100644
--- a/source/blender/makesrna/intern/rna_ui_api.c
+++ b/source/blender/makesrna/intern/rna_ui_api.c
@@ -55,7 +55,7 @@ static void rna_uiItemR(uiLayout *layout, PointerRNA *ptr, char *propname, char
flag |= (full_event)? UI_ITEM_R_FULL_EVENT: 0;
flag |= (no_bg)? UI_ITEM_R_NO_BG: 0;
- uiItemFullR(layout, name, icon, ptr, prop, index, 0, flag);
+ uiItemFullR(layout, ptr, prop, index, 0, flag, name, icon);
}
static PointerRNA rna_uiItemO(uiLayout *layout, char *opname, char *name, int icon)