diff options
author | Germano Cavalcante <germano.costa@ig.com.br> | 2022-01-16 17:14:35 +0300 |
---|---|---|
committer | Germano Cavalcante <germano.costa@ig.com.br> | 2022-01-16 17:25:51 +0300 |
commit | 608d51c9c89b7b5bb46de36ece866730b6536305 (patch) | |
tree | 9559eb6e0939ae47ed2623a742b246f7899989a5 /source/blender/editors/transform/transform_snap_object.c | |
parent | bc66cd9868746ce92dd6de004a8b8e6a0188defe (diff) |
Fix T94951: Crash when snapping
Missed in {rBd9c6ceb3b88b6db87490b08e0089f9a18e6c52d6}
Diffstat (limited to 'source/blender/editors/transform/transform_snap_object.c')
-rw-r--r-- | source/blender/editors/transform/transform_snap_object.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/transform/transform_snap_object.c b/source/blender/editors/transform/transform_snap_object.c index b5a27547e61..4e6a229cb70 100644 --- a/source/blender/editors/transform/transform_snap_object.c +++ b/source/blender/editors/transform/transform_snap_object.c @@ -318,12 +318,14 @@ static SnapObjectData *snap_object_data_mesh_get(SnapObjectContext *sctx, if (sod->treedata_mesh.tree == NULL) { sod->treedata_mesh.vert = me_eval->mvert; + sod->treedata_mesh.vert_normals = BKE_mesh_vertex_normals_ensure(me_eval); sod->treedata_mesh.loop = me_eval->mloop; sod->treedata_mesh.looptri = BKE_mesh_runtime_looptri_ensure(me_eval); BLI_assert(sod->has_looptris == false); } else { BLI_assert(sod->treedata_mesh.vert != NULL); + BLI_assert(sod->treedata_mesh.vert_normals != NULL); BLI_assert(sod->treedata_mesh.loop != NULL); BLI_assert(sod->treedata_mesh.looptri != NULL); sod->has_looptris = true; |