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>2020-01-30 08:50:06 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-01-30 08:50:06 +0300
commit725477fdb163d7782d75747faaef09afba79e751 (patch)
treeecd07e8066656736217084faff55ba2a3ccab05c /source/blender/editors/space_outliner
parentac2d342d88299d6fb61492dc824aa006e3bd7557 (diff)
Fix outliner delete not flushing multi-object edit-mode data
Diffstat (limited to 'source/blender/editors/space_outliner')
-rw-r--r--source/blender/editors/space_outliner/outliner_tools.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/editors/space_outliner/outliner_tools.c b/source/blender/editors/space_outliner/outliner_tools.c
index 234da323de6..c9eeb2cff20 100644
--- a/source/blender/editors/space_outliner/outliner_tools.c
+++ b/source/blender/editors/space_outliner/outliner_tools.c
@@ -46,6 +46,7 @@
#include "BKE_collection.h"
#include "BKE_context.h"
#include "BKE_constraint.h"
+#include "BKE_object.h"
#include "BKE_fcurve.h"
#include "BKE_global.h"
#include "BKE_layer.h"
@@ -678,8 +679,8 @@ static void object_delete_cb(bContext *C,
}
// check also library later
- if (ob == CTX_data_edit_object(C)) {
- ED_object_editmode_exit(C, EM_FREEDATA);
+ 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);
}