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:
authorSergey Sharybin <sergey.vfx@gmail.com>2010-09-26 22:29:54 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2010-09-26 22:29:54 +0400
commit57527cb0ac8b153a4aa89baf655c8d58c488d3a6 (patch)
tree5a66da50cddead9a445c217a7b998565d201001d /source/blender/modifiers
parentcf6b2ca034d1a2d41ac04de1a1ababb1db39df3e (diff)
- Save MDISPS layer when applying modifier.
All sculpting used to disappear before. Save MDISPS if new mesh has got the same faces amount. NOTE: maybe some other layers should be saved? - Apply multires modififier if MDISPS was auto-created. Multires's applyModifier used to return unchanged DM when MDISPS was auto-created. - Set multires totlvl from MDISPS layer when new multires was added to mesh with existing MDISPS layer.
Diffstat (limited to 'source/blender/modifiers')
-rw-r--r--source/blender/modifiers/intern/MOD_multires.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/source/blender/modifiers/intern/MOD_multires.c b/source/blender/modifiers/intern/MOD_multires.c
index dd99c88a684..988ce3921a7 100644
--- a/source/blender/modifiers/intern/MOD_multires.c
+++ b/source/blender/modifiers/intern/MOD_multires.c
@@ -74,7 +74,6 @@ static DerivedMesh *applyModifier(ModifierData *md, Object *ob, DerivedMesh *dm,
if(!CustomData_get_layer(&me->fdata, CD_MDISPS)) {
/* multires always needs a displacement layer */
CustomData_add_layer(&me->fdata, CD_MDISPS, CD_CALLOC, NULL, me->totface);
- return dm;
}
}