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:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2013-11-26 20:09:15 +0400
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2013-11-26 22:55:41 +0400
commit5102a02b388bdf41f2a2d587980a0d9457d19d88 (patch)
treee16ca71e31fe7ef73c053e39797db6a698292d9a /source/blender/blenkernel/intern/customdata.c
parentb65eb761cc13043d3a9c49f447afc22a11c20d6c (diff)
Fix T37541: multires not reading external displacement file after entering edit mode.
Diffstat (limited to 'source/blender/blenkernel/intern/customdata.c')
-rw-r--r--source/blender/blenkernel/intern/customdata.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/source/blender/blenkernel/intern/customdata.c b/source/blender/blenkernel/intern/customdata.c
index a7d87fad38e..7cbcbaf909a 100644
--- a/source/blender/blenkernel/intern/customdata.c
+++ b/source/blender/blenkernel/intern/customdata.c
@@ -507,16 +507,15 @@ static void layerCopy_mdisps(const void *source, void *dest, int count)
if (s[i].disps) {
d[i].disps = MEM_dupallocN(s[i].disps);
d[i].hidden = MEM_dupallocN(s[i].hidden);
- d[i].totdisp = s[i].totdisp;
- d[i].level = s[i].level;
}
else {
d[i].disps = NULL;
d[i].hidden = NULL;
- d[i].totdisp = 0;
- d[i].level = 0;
}
-
+
+ /* still copy even if not in memory, displacement can be external */
+ d[i].totdisp = s[i].totdisp;
+ d[i].level = s[i].level;
}
}