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
path: root/source
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2017-05-26 15:14:51 +0300
committerClément Foucault <foucault.clem@gmail.com>2017-05-29 16:52:27 +0300
commit9caf328a7cc55775b740ee4beecf8a77f47d3986 (patch)
treec6d43bd2ccc2b406ce04b4a8bfc10c8fbb3369cf /source
parent35022d0f63882531ef265ee23fe12f3e129b4c1e (diff)
Revert "Remove MTexPoly layers"
This reverts commit c6e92b4947945e3c1238d936f7954a5b4688c195.
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenloader/intern/versioning_280.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/source/blender/blenloader/intern/versioning_280.c b/source/blender/blenloader/intern/versioning_280.c
index 672f712d861..ea7a6316466 100644
--- a/source/blender/blenloader/intern/versioning_280.c
+++ b/source/blender/blenloader/intern/versioning_280.c
@@ -33,18 +33,15 @@
#include "DNA_gpu_types.h"
#include "DNA_layer_types.h"
#include "DNA_material_types.h"
-#include "DNA_mesh_types.h"
#include "DNA_scene_types.h"
#include "DNA_screen_types.h"
#include "DNA_genfile.h"
#include "BKE_blender.h"
#include "BKE_collection.h"
-#include "BKE_customdata.h"
#include "BKE_idprop.h"
#include "BKE_layer.h"
#include "BKE_main.h"
-#include "BKE_mesh.h"
#include "BKE_scene.h"
#include "BLI_listbase.h"
@@ -276,17 +273,4 @@ void blo_do_versions_280(FileData *fd, Library *UNUSED(lib), Main *main)
}
}
}
-
- /* MTexPoly now removed. */
- if (DNA_struct_find(fd->filesdna, "MTexPoly")) {
- const int cd_mtexpoly = 15; /* CD_MTEXPOLY, deprecated */
- 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);
- }
- }
- }
}