diff options
author | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2009-04-02 23:28:14 +0400 |
---|---|---|
committer | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2009-04-02 23:28:14 +0400 |
commit | 5926ad2db281aeb965d382533973393f0459315b (patch) | |
tree | c1ac3c67a2729f72bbe097757ef2a016c6b02975 | |
parent | 044c2b1fc40e7915f6769ef4826d05972df37630 (diff) |
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.
-rwxr-xr-x | source/blender/freestyle/intern/view_map/Functions0D.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; |