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>2021-08-10 07:37:39 +0300
committerJeroen Bakker <jeroen@blender.org>2021-08-23 10:18:47 +0300
commit7b1e8e244c76400426e27dcc586683f81763955a (patch)
tree95bccd1f0561daa0058a676c91bc59ff473782eb
parent06ecdab9bc6a7ec43fbf7906fc6db6520a73f465 (diff)
Fix T90493: Undo a knife-project operation crashes
The crash occurred calling because mesh_get_eval_final in edit-mode freed all derived mesh data without tagging the object for updating. However meshes in edit-mode weren't meant to be used as knife-project source-data, adding support for multi object edit-mode caused this.
-rw-r--r--source/blender/editors/mesh/editmesh_knife_project.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/editors/mesh/editmesh_knife_project.c b/source/blender/editors/mesh/editmesh_knife_project.c
index c1213cca047..78a5cb5f091 100644
--- a/source/blender/editors/mesh/editmesh_knife_project.c
+++ b/source/blender/editors/mesh/editmesh_knife_project.c
@@ -131,9 +131,11 @@ static int knifeproject_exec(bContext *C, wmOperator *op)
LinkNode *polys = NULL;
CTX_DATA_BEGIN (C, Object *, ob, selected_objects) {
- if (ob != obedit) {
- polys = knifeproject_poly_from_object(C, scene, ob, polys);
+ if (BKE_object_is_in_editmode(ob)) {
+ continue;
}
+ BLI_assert(ob != obedit);
+ polys = knifeproject_poly_from_object(C, scene, ob, polys);
}
CTX_DATA_END;