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:
authorCampbell Barton <ideasman42@gmail.com>2013-12-21 21:45:00 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-12-21 21:45:00 +0400
commitc80c596194b998bd7cd5ba4ec0eb764e19d323b4 (patch)
tree6f939a7c15cc981f2fc15424de1e98244dcc94de
parent158b4e61a050a25fec47a00797ab7db46fc3198c (diff)
Fix for mesh deform modifier missing copy for flag.
-rw-r--r--source/blender/makesdna/DNA_modifier_types.h4
-rw-r--r--source/blender/modifiers/intern/MOD_meshdeform.c1
2 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/makesdna/DNA_modifier_types.h b/source/blender/makesdna/DNA_modifier_types.h
index b3c7427074c..a3792e95804 100644
--- a/source/blender/makesdna/DNA_modifier_types.h
+++ b/source/blender/makesdna/DNA_modifier_types.h
@@ -603,7 +603,7 @@ typedef struct MeshDeformModifierData {
struct Object *object; /* mesh object */
char defgrp_name[64]; /* optional vertexgroup name, MAX_VGROUP_NAME */
- short gridsize, flag, mode, pad;
+ short gridsize, flag, pad[2];
/* result of static binding */
MDefInfluence *bindinfluences; /* influences */
@@ -614,7 +614,7 @@ typedef struct MeshDeformModifierData {
/* result of dynamic binding */
MDefCell *dyngrid; /* grid with dynamic binding cell points */
MDefInfluence *dyninfluences; /* dynamic binding vertex influences */
- int *dynverts, *pad2; /* is this vertex bound or not? */
+ int *dynverts; /* is this vertex bound or not? */
int dyngridsize; /* size of the dynamic bind grid */
int totinfluence; /* total number of vertex influences */
float dyncellmin[3]; /* offset of the dynamic bind grid */
diff --git a/source/blender/modifiers/intern/MOD_meshdeform.c b/source/blender/modifiers/intern/MOD_meshdeform.c
index e540d5c1b2c..61dcc1fbb9d 100644
--- a/source/blender/modifiers/intern/MOD_meshdeform.c
+++ b/source/blender/modifiers/intern/MOD_meshdeform.c
@@ -82,6 +82,7 @@ static void copyData(ModifierData *md, ModifierData *target)
MeshDeformModifierData *tmmd = (MeshDeformModifierData *) target;
tmmd->gridsize = mmd->gridsize;
+ tmmd->flag = mmd->flag;
tmmd->object = mmd->object;
}