[Bf-committers] [Bf-blender-cvs] SVN commit: /data/svn/bf-blender [59904] trunk/blender/source/blender/ makesrna/intern/rna_wm_api.c: rna wrap WM_cursor_warp
IRIE Shinsuke
irieshinsuke at yahoo.co.jp
Sat Sep 7 13:42:21 CEST 2013
Hi Campbell,
This commit broke the blenderplayer compilation:
Linking CXX executable ../../bin/blenderplayer
../../lib/libbf_rna.a(rna_wm_gen.c.o): In function `Window_cursor_warp_call':
rna_wm_gen.c:(.text+0x186d): undefined reference to `WM_cursor_warp'
../../lib/libbf_rna.a(rna_wm_gen.c.o): In function `Window_cursor_warp':
rna_wm_gen.c:(.text+0x5431): undefined reference to `WM_cursor_warp'
collect2: error: ld returned 1 exit status
make[2]: *** [bin/blenderplayer] Error 1
make[1]: *** [source/blenderplayer/CMakeFiles/blenderplayer.dir/all] Error 2
make: *** [all] Error 2
IRIE Shinsuke
13/09/07, Campbell Barton wrote:
> Revision: 59904
> http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=59904
> Author: campbellbarton
> Date: 2013-09-06 23:17:29 +0000 (Fri, 06 Sep 2013)
> Log Message:
> -----------
> rna wrap WM_cursor_warp
>
> Modified Paths:
> --------------
> trunk/blender/source/blender/makesrna/intern/rna_wm_api.c
>
> Modified: trunk/blender/source/blender/makesrna/intern/rna_wm_api.c
> ===================================================================
> --- trunk/blender/source/blender/makesrna/intern/rna_wm_api.c 2013-09-06 22:54:22 UTC (rev 59903)
> +++ trunk/blender/source/blender/makesrna/intern/rna_wm_api.c 2013-09-06 23:17:29 UTC (rev 59904)
> @@ -327,17 +327,21 @@
> FunctionRNA *func;
> PropertyRNA *parm;
>
> - (void)func;
> - (void)parm;
> + func = RNA_def_function(srna, "cursor_warp", "WM_cursor_warp");
> + parm = RNA_def_int(func, "x", 0, INT_MIN, INT_MAX, "", "", INT_MIN, INT_MAX);
> + RNA_def_property_flag(parm, PROP_REQUIRED);
> + parm = RNA_def_int(func, "y", 0, INT_MIN, INT_MAX, "", "", INT_MIN, INT_MAX);
> + RNA_def_property_flag(parm, PROP_REQUIRED);
> + RNA_def_function_ui_description(func, "Set the cursor position");
>
> func = RNA_def_function(srna, "cursor_set", "WM_cursor_set");
> - parm = RNA_def_property(func, "icon", PROP_ENUM, PROP_NONE);
> + parm = RNA_def_property(func, "cursor", PROP_ENUM, PROP_NONE);
> RNA_def_property_enum_items(parm, window_cursor_items);
> RNA_def_property_flag(parm, PROP_REQUIRED);
> RNA_def_function_ui_description(func, "Set the cursor");
>
> func = RNA_def_function(srna, "cursor_modal_set", "WM_cursor_modal_set");
> - parm = RNA_def_property(func, "icon", PROP_ENUM, PROP_NONE);
> + parm = RNA_def_property(func, "cursor", PROP_ENUM, PROP_NONE);
> RNA_def_property_enum_items(parm, window_cursor_items);
> RNA_def_property_flag(parm, PROP_REQUIRED);
> RNA_def_function_ui_description(func, "Set the cursor, so the previous cursor can be restored");
>
> _______________________________________________
> Bf-blender-cvs mailing list
> Bf-blender-cvs at blender.org
> http://lists.blender.org/mailman/listinfo/bf-blender-cvs
>
More information about the Bf-committers
mailing list