Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2017-05-26 16:37:10 +0300
committerCampbell Barton <ideasman42@gmail.com>2017-05-26 16:37:10 +0300
commitcd8a8a3d1f2a058b54aab2d913ce92d26325384d (patch)
tree72201936522d0e014030c418e8e26602827168e4 /source/blender/blenloader
parent7d7c5135d7b2f811229631e263cf22b300d95806 (diff)
Fix removing texface layer
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r--source/blender/blenloader/intern/versioning_280.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/versioning_280.c b/source/blender/blenloader/intern/versioning_280.c
index 808984c88a0..672f712d861 100644
--- a/source/blender/blenloader/intern/versioning_280.c
+++ b/source/blender/blenloader/intern/versioning_280.c
@@ -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);
}
}
}