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
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user