From 5926ad2db281aeb965d382533973393f0459315b Mon Sep 17 00:00:00 2001 From: Tamito Kajiyama Date: Thu, 2 Apr 2009 19:28:14 +0000 Subject: 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. --- source/blender/freestyle/intern/view_map/Functions0D.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source') diff --git a/source/blender/freestyle/intern/view_map/Functions0D.cpp b/source/blender/freestyle/intern/view_map/Functions0D.cpp index d6b820e3b18..b28ac575d00 100755 --- a/source/blender/freestyle/intern/view_map/Functions0D.cpp +++ b/source/blender/freestyle/intern/view_map/Functions0D.cpp @@ -223,7 +223,7 @@ namespace Functions0D { if(count < 3) { // if we only have 2 vertices result = 0; - return -1; + return 0; } Interface0DIterator v = iter; -- cgit v1.2.3