diff options
author | Martin Poirier <theeth@yahoo.com> | 2009-12-07 21:10:11 +0300 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2009-12-07 21:10:11 +0300 |
commit | 1962afa2a6273511268246601659b74c418b6e8e (patch) | |
tree | 6ec26855f239d2efb2ee2116da63d4d631fefb92 /source/blender/editors/transform/transform_generics.c | |
parent | 19aab8edb09eaf3600e4ca90329e244554f3a0fb (diff) |
Use custom cursor draw in transform to draw the new arrow cursors (to indicate direction of motion for a particular transformations). This insures that it's drawn under the cursor and not far away when cursor is warped (rubber band still points to event location, this helps visualize too).
Diffstat (limited to 'source/blender/editors/transform/transform_generics.c')
-rw-r--r-- | source/blender/editors/transform/transform_generics.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/editors/transform/transform_generics.c b/source/blender/editors/transform/transform_generics.c index c9b5b17091e..0340475a1d1 100644 --- a/source/blender/editors/transform/transform_generics.c +++ b/source/blender/editors/transform/transform_generics.c @@ -108,6 +108,7 @@ #include "RNA_access.h" #include "WM_types.h" +#include "WM_api.h" #include "UI_resources.h" @@ -1065,7 +1066,7 @@ int initTransInfo (bContext *C, TransInfo *t, wmOperator *op, wmEvent *event) } /* Here I would suggest only TransInfo related issues, like free data & reset vars. Not redraws */ -void postTrans (TransInfo *t) +void postTrans (bContext *C, TransInfo *t) { TransData *td; @@ -1073,7 +1074,8 @@ void postTrans (TransInfo *t) ED_region_draw_cb_exit(t->ar->type, t->draw_handle_view); if (t->draw_handle_pixel) ED_region_draw_cb_exit(t->ar->type, t->draw_handle_pixel); - + if (t->draw_handle_cursor) + WM_paint_cursor_end(CTX_wm_manager(C), t->draw_handle_cursor); if (t->customFree) { /* Can take over freeing t->data and data2d etc... */ |