Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-12-18 02:22:42 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-12-18 02:22:42 +0300
commit7aeb24e037112c6b8a20d658c3f5c33b1e51e821 (patch)
treec6701260422a8027b3fda2a96ce4af4b00cb8081 /source/blender/editors/util/ed_util.c
parent879c9665985b36c93f21a49663df033a010d2829 (diff)
Fix multi-object state on load
D4091 by @zazizizou
Diffstat (limited to 'source/blender/editors/util/ed_util.c')
-rw-r--r--source/blender/editors/util/ed_util.c2
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);
}