diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-03-15 13:56:05 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-03-15 14:04:08 +0300 |
commit | e53e17b8d64607d996f08c5f5d3ca107ab1261a3 (patch) | |
tree | a2929a328f7bf692c14174808dc6da3236e281aa /source | |
parent | b435bd2f3189e3b7bfdde043442927bbd8f06116 (diff) |
Fix outliner edit-mode check
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/space_outliner/outliner_tools.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/space_outliner/outliner_tools.c b/source/blender/editors/space_outliner/outliner_tools.c index 4cd93b5d257..a99e1b63119 100644 --- a/source/blender/editors/space_outliner/outliner_tools.c +++ b/source/blender/editors/space_outliner/outliner_tools.c @@ -678,8 +678,8 @@ static void object_delete_cb(bContext *C, return; } - // check also library later - if ((ob->mode && OB_MODE_EDIT) && BKE_object_is_in_editmode(ob)) { + /* Check also library later. */ + if ((ob->mode & OB_MODE_EDIT) && BKE_object_is_in_editmode(ob)) { ED_object_editmode_exit_ex(bmain, scene, ob, EM_FREEDATA); } BKE_id_delete(bmain, ob); |