fix for transform using the wrong RNA type
authorCampbell Barton <ideasman42@gmail.com>
Sat, 26 Mar 2011 15:24:59 +0000 (15:24 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sat, 26 Mar 2011 15:24:59 +0000 (15:24 +0000)
source/blender/editors/transform/transform_ops.c

index 963fe2ffa8b7bc7c9501b51ca5ec78b2c82a2761..c31722d97cbb20c0bd882819fd35a292853c3973 100644 (file)
@@ -303,7 +303,7 @@ static int transformops_data(bContext *C, wmOperator *op, wmEvent *event)
 
                if (mode == -1)
                {
-                       mode = RNA_int_get(op->ptr, "mode");
+                       mode = RNA_enum_get(op->ptr, "mode");
                }
 
                retval = initTransform(C, t, op, event, mode);