diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-03-29 17:48:28 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-03-29 17:48:28 +0400 |
commit | 5c79bbe2d8c530c84d6c5979d45c283e1875c4ce (patch) | |
tree | 208716292a2fff65292e30a37623055500d3d0a4 /source/blender/editors/uvedit | |
parent | 0297b6c8c6102a5ef5eca03dbedfd4ff5bc04fbe (diff) |
fix [#26666] Snapping the cursor to selected in UV Image Editor when unwrapping causes an assert.
Diffstat (limited to 'source/blender/editors/uvedit')
-rw-r--r-- | source/blender/editors/uvedit/uvedit_ops.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/uvedit/uvedit_ops.c b/source/blender/editors/uvedit/uvedit_ops.c index 462bdda5e32..ec12b997742 100644 --- a/source/blender/editors/uvedit/uvedit_ops.c +++ b/source/blender/editors/uvedit/uvedit_ops.c @@ -2386,7 +2386,7 @@ static int snap_cursor_exec(bContext *C, wmOperator *op) Image *ima= CTX_data_edit_image(C); int change= 0; - switch(RNA_boolean_get(op->ptr, "target")) { + switch(RNA_enum_get(op->ptr, "target")) { case 0: snap_cursor_to_pixels(sima); change= 1; @@ -2623,7 +2623,7 @@ static int snap_selection_exec(bContext *C, wmOperator *op) Image *ima= CTX_data_edit_image(C); int change= 0; - switch(RNA_boolean_get(op->ptr, "target")) { + switch(RNA_enum_get(op->ptr, "target")) { case 0: change= snap_uvs_to_pixels(sima, scene, obedit); break; |