diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-09-23 16:31:11 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-09-23 17:27:23 +0300 |
commit | 9208146199019e111711f077abcda31f976cabcc (patch) | |
tree | df287ca58b1f8d6d27ecb19f6bd02de8d5b39249 /source/blender/blenkernel/intern/mesh_convert.c | |
parent | 5c89c689db5c68602aecb55a0a7891059021eeaf (diff) |
Cleanup: remove Mesh.bb and Curve.bb, no reason for these to be persistent
These were only strictly valid for texture space calculation, don't store them
since they should not be used after that. Only store a flag to indicate if the
auto texture space has been evaluated.
In the future it might make sense to store bounding boxes at the mesh level to
speed up bounding box computation for multiple objects using the same mesh, but
then it will need to be implemented differently.
Diffstat (limited to 'source/blender/blenkernel/intern/mesh_convert.c')
-rw-r--r-- | source/blender/blenkernel/intern/mesh_convert.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/source/blender/blenkernel/intern/mesh_convert.c b/source/blender/blenkernel/intern/mesh_convert.c index 021fd615f44..e1b1fddc730 100644 --- a/source/blender/blenkernel/intern/mesh_convert.c +++ b/source/blender/blenkernel/intern/mesh_convert.c @@ -1576,11 +1576,7 @@ void BKE_mesh_nomain_to_mesh(Mesh *mesh_src, /* Clear selection history */ MEM_SAFE_FREE(tmp.mselect); tmp.totselect = 0; - BLI_assert(ELEM(tmp.bb, NULL, mesh_dst->bb)); - if (mesh_dst->bb) { - MEM_freeN(mesh_dst->bb); - tmp.bb = NULL; - } + tmp.texflag &= ~ME_AUTOSPACE_EVALUATED; /* skip the listbase */ MEMCPY_STRUCT_AFTER(mesh_dst, &tmp, id.prev); |