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:
authorPablo Dobarro <pablodp606@gmail.com>2020-03-12 18:07:41 +0300
committerPablo Dobarro <pablodp606@gmail.com>2020-03-16 19:45:22 +0300
commitbab0fd13087e74709d6bfb2872f9e3ed95f99748 (patch)
tree5ea8e3d6cfee007f452d1ea741c820fb4027f7d2
parente4077ea69d5f6122921f14614f9731add0b78fc7 (diff)
Fix visual artifacts with partially hidden meshes and mask extract
The previous behaivour didn't make sense as sculpt mode was still active when switching to the new object, so it was rendering inconrrectly. Reviewed By: jbakker Differential Revision: https://developer.blender.org/D7130
-rw-r--r--source/blender/editors/mesh/editmesh_mask_extract.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/mesh/editmesh_mask_extract.c b/source/blender/editors/mesh/editmesh_mask_extract.c
index 1c4bc33240a..a1c8aab9bec 100644
--- a/source/blender/editors/mesh/editmesh_mask_extract.c
+++ b/source/blender/editors/mesh/editmesh_mask_extract.c
@@ -80,6 +80,9 @@ static int paint_mask_extract_exec(bContext *C, wmOperator *op)
View3D *v3d = CTX_wm_view3d(C);
Scene *scene = CTX_data_scene(C);
+ Depsgraph *depsgraph = CTX_data_depsgraph_on_load(C);
+ ED_object_sculptmode_exit(C, depsgraph);
+
BKE_sculpt_mask_layers_ensure(ob, NULL);
Mesh *mesh = ob->data;