[Bf-blender-cvs] [3f729a1] temp-curve-draw: Change the cursor when drawing
Campbell Barton
noreply at git.blender.org
Fri Apr 15 09:17:36 CEST 2016
Commit: 3f729a10fc722f3ef992d4928ef813e9e242fa95
Author: Campbell Barton
Date: Fri Apr 15 17:17:43 2016 +1000
Branches: temp-curve-draw
https://developer.blender.org/rB3f729a10fc722f3ef992d4928ef813e9e242fa95
Change the cursor when drawing
===================================================================
M source/blender/editors/curve/editcurve_paint.c
===================================================================
diff --git a/source/blender/editors/curve/editcurve_paint.c b/source/blender/editors/curve/editcurve_paint.c
index ae2d77c..483a207 100644
--- a/source/blender/editors/curve/editcurve_paint.c
+++ b/source/blender/editors/curve/editcurve_paint.c
@@ -624,6 +624,7 @@ static void curve_draw_exit(wmOperator *op)
if (cdd) {
if (cdd->draw_handle_view) {
ED_region_draw_cb_exit(cdd->vc.ar->type, cdd->draw_handle_view);
+ WM_cursor_modal_restore(cdd->vc.win);
}
if (cdd->stroke_elem_pool) {
@@ -972,6 +973,7 @@ static int curve_draw_invoke(bContext *C, wmOperator *op, const wmEvent *event)
cdd->draw_handle_view = ED_region_draw_cb_activate(
cdd->vc.ar->type, curve_draw_stroke_3d, op, REGION_DRAW_POST_VIEW);
+ WM_cursor_modal_set(cdd->vc.win, BC_PAINTBRUSHCURSOR);
{
View3D *v3d = cdd->vc.v3d;
@@ -1123,4 +1125,4 @@ void CURVE_OT_draw(wmOperatorType *ot)
RNA_def_property_flag(prop, PROP_HIDDEN | PROP_SKIP_SAVE);
}
-/** \} */
\ No newline at end of file
+/** \} */
More information about the Bf-blender-cvs
mailing list