Fix incorrect RNA access in parenting operator
authorSergey Sharybin <sergey.vfx@gmail.com>
Sat, 21 Jul 2012 08:50:11 +0000 (08:50 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Sat, 21 Jul 2012 08:50:11 +0000 (08:50 +0000)
source/blender/editors/object/object_relations.c

index d25e41898ea13237adb0a5953e989cdc60b483a4..1c48a8bfcab7837cbc79d390dc5a9e8367f17efe 100644 (file)
@@ -677,7 +677,7 @@ static int parent_set_exec(bContext *C, wmOperator *op)
        Scene *scene = CTX_data_scene(C);
        Object *par = ED_object_active_context(C);
        int partype = RNA_enum_get(op->ptr, "type");
-       int xmirror = RNA_enum_get(op->ptr, "xmirror");
+       int xmirror = RNA_boolean_get(op->ptr, "xmirror");
        int ok = 1;
 
        CTX_DATA_BEGIN (C, Object *, ob, selected_editable_objects)