Fix removing texface layer
This commit is contained in:
parent
7d7c5135d7
commit
cd8a8a3d1f
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue