Fix #20911: automatic bone weights work poorly when vertex lies

exactly on a bone, tweak epsilons to make this work better.
This commit is contained in:
Brecht Van Lommel
2010-04-06 16:25:06 +00:00
parent 080c49d176
commit 7b4536b3a9

View File

@@ -523,10 +523,8 @@ static void heat_set_H(LaplacianSystem *sys, int vertex)
/* compute H entry */
if(numclosest > 0) {
if(mindist > 1e-5)
h= numclosest*C_WEIGHT/(mindist*mindist);
else
h= 1e10f;
mindist= maxf(mindist, 1e-4f);
h= numclosest*C_WEIGHT/(mindist*mindist);
}
else
h= 0.0f;