[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [58000] trunk/blender/source/blender/ windowmanager: correct bad use of bool for cursor arg.

Campbell Barton ideasman42 at gmail.com
Thu Jul 4 20:58:01 CEST 2013


Revision: 58000
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=58000
Author:   campbellbarton
Date:     2013-07-04 18:58:00 +0000 (Thu, 04 Jul 2013)
Log Message:
-----------
correct bad use of bool for cursor arg.

Modified Paths:
--------------
    trunk/blender/source/blender/windowmanager/WM_api.h
    trunk/blender/source/blender/windowmanager/intern/wm_operators.c

Modified: trunk/blender/source/blender/windowmanager/WM_api.h
===================================================================
--- trunk/blender/source/blender/windowmanager/WM_api.h	2013-07-04 18:17:02 UTC (rev 57999)
+++ trunk/blender/source/blender/windowmanager/WM_api.h	2013-07-04 18:58:00 UTC (rev 58000)
@@ -252,7 +252,7 @@
 void        WM_operator_properties_border_to_rcti(struct wmOperator *op, struct rcti *rect);
 void		WM_operator_properties_gesture_border(struct wmOperatorType *ot, bool extend);
 void        WM_operator_properties_mouse_select(struct wmOperatorType *ot);
-void		WM_operator_properties_gesture_straightline(struct wmOperatorType *ot, bool cursor);
+void		WM_operator_properties_gesture_straightline(struct wmOperatorType *ot, int cursor);
 void		WM_operator_properties_select_all(struct wmOperatorType *ot);
 void		WM_operator_properties_select_action(struct wmOperatorType *ot, int default_action);
 

Modified: trunk/blender/source/blender/windowmanager/intern/wm_operators.c
===================================================================
--- trunk/blender/source/blender/windowmanager/intern/wm_operators.c	2013-07-04 18:17:02 UTC (rev 57999)
+++ trunk/blender/source/blender/windowmanager/intern/wm_operators.c	2013-07-04 18:58:00 UTC (rev 58000)
@@ -1175,7 +1175,7 @@
 	RNA_def_boolean(ot->srna, "toggle", 0, "Toggle Selection", "Toggle the selection");
 }
 
-void WM_operator_properties_gesture_straightline(wmOperatorType *ot, bool cursor)
+void WM_operator_properties_gesture_straightline(wmOperatorType *ot, int cursor)
 {
 	RNA_def_int(ot->srna, "xstart", 0, INT_MIN, INT_MAX, "X Start", "", INT_MIN, INT_MAX);
 	RNA_def_int(ot->srna, "xend", 0, INT_MIN, INT_MAX, "X End", "", INT_MIN, INT_MAX);




More information about the Bf-blender-cvs mailing list