[Bf-blender-cvs] [9f2ae547c0a] master: Fix/workaround RNA build error in C++ API.

Brecht Van Lommel noreply at git.blender.org
Mon May 21 12:07:39 CEST 2018


Commit: 9f2ae547c0a4f8a230135423e163b22053251f1d
Author: Brecht Van Lommel
Date:   Mon May 21 11:13:56 2018 +0200
Branches: master
https://developer.blender.org/rB9f2ae547c0a4f8a230135423e163b22053251f1d

Fix/workaround RNA build error in C++ API.

It seems output parameter needs to be the last one.

===================================================================

M	source/blender/makesrna/intern/rna_wm_api.c

===================================================================

diff --git a/source/blender/makesrna/intern/rna_wm_api.c b/source/blender/makesrna/intern/rna_wm_api.c
index 4ba214447fd..c8125615402 100644
--- a/source/blender/makesrna/intern/rna_wm_api.c
+++ b/source/blender/makesrna/intern/rna_wm_api.c
@@ -820,10 +820,10 @@ void RNA_api_keyconfigs(StructRNA *srna)
 	parm = RNA_def_pointer(func, "properties", "OperatorProperties", "", "");
 	RNA_def_parameter_flags(parm, 0, PARM_RNAPTR);
 	RNA_def_boolean(func, "is_hotkey", 0, "Hotkey", "Event is not a modifier");
-	parm = RNA_def_pointer(func, "keymap", "KeyMap", "", "");
-	RNA_def_parameter_flags(parm, 0, PARM_RNAPTR | PARM_OUTPUT);
 	parm = RNA_def_pointer(func, "item", "KeyMapItem", "", "");
 	RNA_def_parameter_flags(parm, 0, PARM_RNAPTR);
+	parm = RNA_def_pointer(func, "keymap", "KeyMap", "", "");
+	RNA_def_parameter_flags(parm, 0, PARM_RNAPTR | PARM_OUTPUT);
 	RNA_def_function_return(func, parm);
 
 	RNA_def_function(srna, "update", "rna_KeyConfig_update"); /* WM_keyconfig_update */



More information about the Bf-blender-cvs mailing list