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:
authorJoseph Eagar <joeedh@gmail.com>2009-10-30 12:50:35 +0300
committerJoseph Eagar <joeedh@gmail.com>2009-10-30 12:50:35 +0300
commit77532f6f8ac3dd3f12608a81b807f42936bbae33 (patch)
tree78628f03f840c2f9f86cccd1eef44a937442c501 /source/blender/editors/sculpt_paint
parentae9eae222c0a92bea637f1023a46fe44e4a2a534 (diff)
two things; made ctrl-p add an armature modifier instead of using PARSKEL, and also made wpaint auto-normalize work with PARSKEL armature setups
Diffstat (limited to 'source/blender/editors/sculpt_paint')
-rw-r--r--source/blender/editors/sculpt_paint/paint_vertex.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_vertex.c b/source/blender/editors/sculpt_paint/paint_vertex.c
index 4241db0e371..9d673581368 100644
--- a/source/blender/editors/sculpt_paint/paint_vertex.c
+++ b/source/blender/editors/sculpt_paint/paint_vertex.c
@@ -1264,7 +1264,7 @@ static char *wpaint_make_validmap(Mesh *me, Object *ob)
bPoseChannel *chan;
ArmatureModifierData *amd;
GHash *gh = BLI_ghash_new(BLI_ghashutil_strhash, BLI_ghashutil_strcmp);
- int i = 0;
+ int i = 0, step1=1;
/*add all names to a hash table*/
for (dg=ob->defbase.first, i=0; dg; dg=dg->next, i++) {
@@ -1277,8 +1277,8 @@ static char *wpaint_make_validmap(Mesh *me, Object *ob)
validmap = MEM_callocN(i, "wpaint valid map");
/*now loop through the armature modifiers and identify deform bones*/
- for (md = ob->modifiers.first; md; md=md->next) {
- if (!(md->mode & eModifierMode_Realtime))
+ for (md = ob->modifiers.first; md; md= !md->next && step1 ? (step1=0), modifiers_getVirtualModifierList(ob) : md->next) {
+ if (!(md->mode & (eModifierMode_Realtime|eModifierMode_Virtual)))
continue;
if (md->type == eModifierType_Armature)