fix [#26666] Snapping the cursor to selected in UV Image Editor when unwrapping cause...
authorCampbell Barton <ideasman42@gmail.com>
Tue, 29 Mar 2011 13:48:28 +0000 (13:48 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 29 Mar 2011 13:48:28 +0000 (13:48 +0000)
source/blender/editors/uvedit/uvedit_ops.c

index 462bdda5e32d6fda84636f98fb4acd1083e58c25..ec12b997742bbe2924c3091fcb5185d052606192 100644 (file)
@@ -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;