Revision: 23294 http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=23294 Author: migius Date: 2009-09-17 00:13:48 +0200 (Thu, 17 Sep 2009)
Log Message: ----------- bugfix for LineIntersectLine() - was imperfect calculation for points marking shortest distance for non-crossing lines in 3d Modified Paths: -------------- branches/blender2.4/source/blender/blenlib/intern/arithb.c branches/blender2.4/source/blender/python/api2_2x/Mathutils.c Modified: branches/blender2.4/source/blender/blenlib/intern/arithb.c =================================================================== --- branches/blender2.4/source/blender/blenlib/intern/arithb.c 2009-09-16 22:12:23 UTC (rev 23293) +++ branches/blender2.4/source/blender/blenlib/intern/arithb.c 2009-09-16 22:13:48 UTC (rev 23294) @@ -4316,7 +4316,7 @@ VecSubf(c, v3t, v1); VecSubf(a, v2, v1); - VecSubf(b, v4t, v3); + VecSubf(b, v4t, v3t); Crossf(ab, a, b); Crossf(cb, c, b); Modified: branches/blender2.4/source/blender/python/api2_2x/Mathutils.c =================================================================== --- branches/blender2.4/source/blender/python/api2_2x/Mathutils.c 2009-09-16 22:12:23 UTC (rev 23293) +++ branches/blender2.4/source/blender/python/api2_2x/Mathutils.c 2009-09-16 22:13:48 UTC (rev 23294) @@ -1360,7 +1360,7 @@ PyErr_SetString( PyExc_TypeError, "expected 4 vector types\n" ); return NULL; } - if( vec1->size != vec2->size || vec1->size != vec3->size || vec1->size != vec2->size) { + if( vec1->size != vec2->size || vec1->size != vec3->size || vec3->size != vec2->size) { PyErr_SetString( PyExc_TypeError,"vectors must be of the same size\n" ); return NULL; } _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org http://lists.blender.org/mailman/listinfo/bf-blender-cvs