[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [28051] trunk/blender/source/blender/ editors/armature/meshlaplacian.c: Fix #20911: automatic bone weights work poorly when vertex lies
Brecht Van Lommel
brecht at blender.org
Tue Apr 6 18:25:06 CEST 2010
Revision: 28051
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=28051
Author: blendix
Date: 2010-04-06 18:25:06 +0200 (Tue, 06 Apr 2010)
Log Message:
-----------
Fix #20911: automatic bone weights work poorly when vertex lies
exactly on a bone, tweak epsilons to make this work better.
Modified Paths:
--------------
trunk/blender/source/blender/editors/armature/meshlaplacian.c
Modified: trunk/blender/source/blender/editors/armature/meshlaplacian.c
===================================================================
--- trunk/blender/source/blender/editors/armature/meshlaplacian.c 2010-04-06 15:39:44 UTC (rev 28050)
+++ trunk/blender/source/blender/editors/armature/meshlaplacian.c 2010-04-06 16:25:06 UTC (rev 28051)
@@ -523,10 +523,8 @@
/* 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;
More information about the Bf-blender-cvs
mailing list