[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [24176] trunk/blender/source/blender/ editors/sculpt_paint/paint_vertex.c: two things; made ctrl-p add an armature modifier instead of using PARSKEL, and also made wpaint auto-normalize work with PARSKEL armature setups

Joseph Eagar joeedh at gmail.com
Fri Oct 30 10:50:36 CET 2009


Revision: 24176
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=24176
Author:   joeedh
Date:     2009-10-30 10:50:35 +0100 (Fri, 30 Oct 2009)

Log Message:
-----------
two things; made ctrl-p add an armature modifier instead of using PARSKEL, and also made wpaint auto-normalize work with PARSKEL armature setups

Modified Paths:
--------------
    trunk/blender/source/blender/editors/sculpt_paint/paint_vertex.c

Modified: trunk/blender/source/blender/editors/sculpt_paint/paint_vertex.c
===================================================================
--- trunk/blender/source/blender/editors/sculpt_paint/paint_vertex.c	2009-10-30 09:34:57 UTC (rev 24175)
+++ trunk/blender/source/blender/editors/sculpt_paint/paint_vertex.c	2009-10-30 09:50:35 UTC (rev 24176)
@@ -1264,7 +1264,7 @@
 	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 @@
 	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) 





More information about the Bf-blender-cvs mailing list