[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [26299] trunk/blender/source/blender/ editors/armature/meshlaplacian.c: Fix #20049: mdef binding wasn' t working correct since raytrace optimization.
Brecht Van Lommel
brecht at blender.org
Tue Jan 26 15:08:19 CET 2010
Revision: 26299
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=26299
Author: blendix
Date: 2010-01-26 15:08:19 +0100 (Tue, 26 Jan 2010)
Log Message:
-----------
Fix #20049: mdef binding wasn't working correct since raytrace optimization.
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-01-26 14:00:13 UTC (rev 26298)
+++ trunk/blender/source/blender/editors/armature/meshlaplacian.c 2010-01-26 14:08:19 UTC (rev 26299)
@@ -1166,7 +1166,7 @@
mface= mdb->cagedm->getFaceArray(mdb->cagedm);
totface= mdb->cagedm->getNumFaces(mdb->cagedm);
- VECADDFAC( end, isec->start, isec->vec, isec->labda );
+ add_v3_v3v3(end, isec->start, isec->vec);
for(f=0; f<totface; f++, mface++) {
copy_v3_v3(face[0], mdb->cagecos[mface->v1]);
@@ -1670,7 +1670,6 @@
for(b=0; b<mdb->totvert; b++) {
if(mdb->inside[b]) {
copy_v3_v3(vec, mdb->vertexcos[b]);
- mul_m4_v3(mdb->cagemat, vec);
gridvec[0]= (vec[0] - mdb->min[0] - mdb->halfwidth[0])/mdb->width[0];
gridvec[1]= (vec[1] - mdb->min[1] - mdb->halfwidth[1])/mdb->width[1];
gridvec[2]= (vec[2] - mdb->min[2] - mdb->halfwidth[2])/mdb->width[2];
@@ -1781,7 +1780,6 @@
totinside= 0;
for(a=0; a<mdb->totvert; a++) {
copy_v3_v3(vec, mdb->vertexcos[a]);
- mul_m4_v3(mdb->cagemat, vec);
mdb->inside[a]= meshdeform_inside_cage(mdb, vec);
if(mdb->inside[a])
totinside++;
More information about the Bf-blender-cvs
mailing list