[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [19506] branches/soc-2008-mxcurioni/source /blender/freestyle/intern/view_map/Functions0D.cpp: Fixed an error checking in Curvature2DAngleF0D::operator().
Tamito Kajiyama
rd6t-kjym at asahi-net.or.jp
Thu Apr 2 21:28:15 CEST 2009
Revision: 19506
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=19506
Author: kjym3
Date: 2009-04-02 21:28:14 +0200 (Thu, 02 Apr 2009)
Log Message:
-----------
Fixed an error checking in Curvature2DAngleF0D::operator().
Now the function results in 0 (radian) if the given Interface0DIterator
object has only 2 vertices, which is not considered an error.
Modified Paths:
--------------
branches/soc-2008-mxcurioni/source/blender/freestyle/intern/view_map/Functions0D.cpp
Modified: branches/soc-2008-mxcurioni/source/blender/freestyle/intern/view_map/Functions0D.cpp
===================================================================
--- branches/soc-2008-mxcurioni/source/blender/freestyle/intern/view_map/Functions0D.cpp 2009-04-02 18:16:15 UTC (rev 19505)
+++ branches/soc-2008-mxcurioni/source/blender/freestyle/intern/view_map/Functions0D.cpp 2009-04-02 19:28:14 UTC (rev 19506)
@@ -223,7 +223,7 @@
if(count < 3) {
// if we only have 2 vertices
result = 0;
- return -1;
+ return 0;
}
Interface0DIterator v = iter;
More information about the Bf-blender-cvs
mailing list