Fix transform reading all ob-data as a mesh
authorCampbell Barton <ideasman42@gmail.com>
Thu, 21 Feb 2019 06:27:57 +0000 (17:27 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 21 Feb 2019 06:27:57 +0000 (17:27 +1100)
source/blender/editors/transform/transform_generics.c

index 19136b6..d74cd72 100644 (file)
@@ -1232,6 +1232,7 @@ void initTransDataContainers_FromObjectData(TransInfo *t, Object *obact, Object
                        tc->mirror.axis_flag = (
                                ((t->flag & T_NO_MIRROR) == 0) &&
                                ((t->options & CTX_NO_MIRROR) == 0) &&
+                               (objects[i]->type == OB_MESH) &&
                                (((Mesh *)objects[i]->data)->editflag & ME_EDIT_MIRROR_X) != 0);
 
                        if (object_mode & OB_MODE_EDIT) {