diff options
author | Germano Cavalcante <germano.costa@ig.com.br> | 2022-04-18 23:03:26 +0300 |
---|---|---|
committer | Germano Cavalcante <germano.costa@ig.com.br> | 2022-04-19 00:24:50 +0300 |
commit | bec057a4531dfc2c6986ffdcb6f8723b8a6d3c34 (patch) | |
tree | fcd63539edd098a4989a3831dd835400be09212f /source/blender | |
parent | 03d39a04a3a29b7eb464ca2ae39c69757ee9f6c2 (diff) |
Fix assert on meshes without mloop in snap code
Meshes without loops are still valid for snapping.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/transform/transform_snap_object.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/transform/transform_snap_object.cc b/source/blender/editors/transform/transform_snap_object.cc index c3168b58c47..d0c0d141f15 100644 --- a/source/blender/editors/transform/transform_snap_object.cc +++ b/source/blender/editors/transform/transform_snap_object.cc @@ -312,10 +312,10 @@ static SnapObjectData *snap_object_data_mesh_get(SnapObjectContext *sctx, use_hide ? BVHTREE_FROM_LOOPTRI_NO_HIDDEN : BVHTREE_FROM_LOOPTRI, 4); - BLI_assert(sod->treedata_mesh.vert != nullptr); - BLI_assert(sod->treedata_mesh.vert_normals != nullptr); - BLI_assert(sod->treedata_mesh.loop != nullptr); - BLI_assert(sod->treedata_mesh.looptri != nullptr); + BLI_assert(sod->treedata_mesh.vert == me_eval->mvert); + BLI_assert(!me_eval->mvert || sod->treedata_mesh.vert_normals); + BLI_assert(sod->treedata_mesh.loop == me_eval->mloop); + BLI_assert(!me_eval->mpoly || sod->treedata_mesh.looptri); BLI_assert(sod->has_looptris == false); sod->has_looptris = sod->treedata_mesh.tree != nullptr; |