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:
authorBastien Montagne <montagne29@wanadoo.fr>2014-03-13 15:51:20 +0400
committerBastien Montagne <montagne29@wanadoo.fr>2014-03-13 15:54:07 +0400
commit01412650733547bd56b8fafced09b0e0a43ae728 (patch)
tree908702bb86963c17819287a22d56c99d52768315 /source/blender/modifiers/intern
parent67fc520ab8833ed4c27a4cdf4eb7f93b7ef55904 (diff)
Fix T39152: Blender crash when duplicate mesh with hooks and laplacian deform.
We can't simply dupalloc cache_system (LaplacianSystem), it has quite a few allocated data we'd need to dupalloc as well, not to mention (nl) context... Much safer to just set it to NULL in new copy imho! This commit is to be backported to 2.70 release!
Diffstat (limited to 'source/blender/modifiers/intern')
-rw-r--r--source/blender/modifiers/intern/MOD_laplaciandeform.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/modifiers/intern/MOD_laplaciandeform.c b/source/blender/modifiers/intern/MOD_laplaciandeform.c
index 9ed99fc4aed..8e2a58b2236 100644
--- a/source/blender/modifiers/intern/MOD_laplaciandeform.c
+++ b/source/blender/modifiers/intern/MOD_laplaciandeform.c
@@ -808,7 +808,7 @@ static void copyData(ModifierData *md, ModifierData *target)
modifier_copyData_generic(md, target);
tlmd->vertexco = MEM_dupallocN(lmd->vertexco);
- tlmd->cache_system = MEM_dupallocN(lmd->cache_system);
+ tlmd->cache_system = NULL;
}
static bool isDisabled(ModifierData *md, int UNUSED(useRenderParams))