diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-07-26 14:52:59 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-07-26 14:52:59 +0400 |
commit | ffe92d0e430aa9498c59a0335beae76b73bd54d6 (patch) | |
tree | 9c785ceb3d09a640d627734e6bca571bd9e6f314 /source/blender/editors/uvedit | |
parent | 25469dfb6d92cc0374fa45f1a4daf4a56670fdc2 (diff) |
mask/image: rotate about 2d cursor now works.
Diffstat (limited to 'source/blender/editors/uvedit')
-rw-r--r-- | source/blender/editors/uvedit/uvedit_ops.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/source/blender/editors/uvedit/uvedit_ops.c b/source/blender/editors/uvedit/uvedit_ops.c index 0f4f03e5b71..eea316920d3 100644 --- a/source/blender/editors/uvedit/uvedit_ops.c +++ b/source/blender/editors/uvedit/uvedit_ops.c @@ -3380,14 +3380,11 @@ static void UV_OT_reveal(wmOperatorType *ot) static int set_2d_cursor_exec(bContext *C, wmOperator *op) { SpaceImage *sima = CTX_wm_space_image(C); - float location[2]; if (!sima) return OPERATOR_CANCELLED; - RNA_float_get_array(op->ptr, "location", location); - sima->cursor[0] = location[0]; - sima->cursor[1] = location[1]; + RNA_float_get_array(op->ptr, "location", sima->cursor); WM_event_add_notifier(C, NC_SPACE | ND_SPACE_IMAGE, NULL); |