[Bf-blender-cvs] [a630e46a582] master: Fix T70544: Mesh extracted from Mask crash Blender when using Dyntopo

Pablo Dobarro noreply at git.blender.org
Wed Oct 9 16:18:19 CEST 2019


Commit: a630e46a5827184b2f15f02a3ec375e5d4f377f6
Author: Pablo Dobarro
Date:   Mon Oct 7 21:12:09 2019 +0200
Branches: master
https://developer.blender.org/rBa630e46a5827184b2f15f02a3ec375e5d4f377f6

Fix T70544: Mesh extracted from Mask crash Blender when using Dyntopo

This commit fixes an assert in mesh_runtime_check_normals_valid

Reviewed By: jbakker

Maniphest Tasks: T70544

Differential Revision: https://developer.blender.org/D6013

===================================================================

M	source/blender/editors/mesh/editmesh_mask_extract.c

===================================================================

diff --git a/source/blender/editors/mesh/editmesh_mask_extract.c b/source/blender/editors/mesh/editmesh_mask_extract.c
index 272bae50f17..8d98a3bf231 100644
--- a/source/blender/editors/mesh/editmesh_mask_extract.c
+++ b/source/blender/editors/mesh/editmesh_mask_extract.c
@@ -215,6 +215,8 @@ static int paint_mask_extract_exec(bContext *C, wmOperator *op)
     }
   }
 
+  BKE_mesh_calc_normals(new_ob->data);
+
   WM_event_add_notifier(C, NC_OBJECT | ND_MODIFIER, new_ob);
   BKE_mesh_batch_cache_dirty_tag(new_ob->data, BKE_MESH_BATCH_DIRTY_ALL);
   DEG_relations_tag_update(bmain);



More information about the Bf-blender-cvs mailing list