Fix removing texface layer

This commit is contained in:
Campbell Barton 2017-05-26 23:37:10 +10:00
parent 7d7c5135d7
commit cd8a8a3d1f
1 changed files with 3 additions and 0 deletions

View File

@ -44,6 +44,7 @@
#include "BKE_idprop.h"
#include "BKE_layer.h"
#include "BKE_main.h"
#include "BKE_mesh.h"
#include "BKE_scene.h"
#include "BLI_listbase.h"
@ -282,7 +283,9 @@ void blo_do_versions_280(FileData *fd, Library *UNUSED(lib), Main *main)
for (Mesh *me = main->mesh.first; me; me = me->id.next) {
/* If we have UV's, so this file will have MTexPoly layers too! */
if (me->mloopuv != NULL) {
CustomData_update_typemap(&me->pdata);
CustomData_free_layers(&me->pdata, cd_mtexpoly, me->totpoly);
BKE_mesh_update_customdata_pointers(me, false);
}
}
}