diff options
-rw-r--r-- | source/blender/editors/util/ed_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/util/ed_util.c b/source/blender/editors/util/ed_util.c index d2bed9ca06e..b3ec0a4388f 100644 --- a/source/blender/editors/util/ed_util.c +++ b/source/blender/editors/util/ed_util.c @@ -122,7 +122,7 @@ void ED_editors_init(bContext *C) if (ob->type != OB_GPENCIL) { ID *data = ob->data; ob->mode = OB_MODE_OBJECT; - if ((ob == obact) && !ID_IS_LINKED(ob) && !(data && ID_IS_LINKED(data))) { + if ((ob->type == obact->type) && !ID_IS_LINKED(ob) && !(data && ID_IS_LINKED(data))) { if (mode == OB_MODE_EDIT) { ED_object_editmode_enter_ex(bmain, scene, ob, 0); } |