Finish porting TriangleMesh->translate

This commit is contained in:
Alessandro Ranellucci 2013-08-05 19:17:13 +02:00
parent 04d5d1bb9b
commit 597e9e6c14
2 changed files with 8 additions and 4 deletions

View file

@ -26,10 +26,14 @@
void
stl_invalidate_shared_vertices(stl_file *stl)
{
if (stl->v_indices != NULL)
if (stl->v_indices != NULL) {
free(stl->v_indices);
if (stl->v_shared != NULL)
stl->v_indices = NULL;
}
if (stl->v_shared != NULL) {
free(stl->v_shared);
stl->v_shared = NULL;
}
}
void