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:
authorNicholas Bishop <nicholasbishop@gmail.com>2012-03-10 07:07:42 +0400
committerNicholas Bishop <nicholasbishop@gmail.com>2012-03-10 07:07:42 +0400
commitb8f15a1dd3310fc5dcf1d1ade64ca726e4f08df3 (patch)
treed3b5e27ce7e6795ec5f41acb980603046d5593e2 /source
parent702e85ef849a2ad0a34ef0bd2d9f021e4a6e773f (diff)
Revert changes BMesh changes MDisp loading in readfile.c
These changes originated in r35321, which transfered MDisps to a different memory allocator; this is no long used, however, so post-merge it was just making an identical copy.
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenloader/intern/readfile.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c
index c16b0003d9b..517ba303a1a 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -3750,18 +3750,7 @@ static void direct_link_mdisps(FileData *fd, int count, MDisps *mdisps, int exte
for(i = 0; i < count; ++i) {
mdisps[i].disps = newdataadr(fd, mdisps[i].disps);
-
- /*put .disps into cellalloc system*/
- if (mdisps[i].disps) {
- float *disp2;
-
- disp2 = MEM_mallocN(MEM_allocN_len(mdisps[i].disps), "cellalloc .disps copy");
- memcpy(disp2, mdisps[i].disps, MEM_allocN_len(mdisps[i].disps));
-
- MEM_freeN(mdisps[i].disps);
- mdisps[i].disps = (float (*)[3])disp2;
- }
-
+
if( (fd->flags & FD_FLAGS_SWITCH_ENDIAN) && (mdisps[i].disps) ) {
/* DNA_struct_switch_endian doesn't do endian swap for (*disps)[] */
/* this does swap for data written at write_mdisps() - readfile.c */