Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2009-04-02 23:28:14 +0400
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2009-04-02 23:28:14 +0400
commit5926ad2db281aeb965d382533973393f0459315b (patch)
treec1ac3c67a2729f72bbe097757ef2a016c6b02975 /source/blender/freestyle/intern/view_map/Functions0D.cpp
parent044c2b1fc40e7915f6769ef4826d05972df37630 (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.
Diffstat (limited to 'source/blender/freestyle/intern/view_map/Functions0D.cpp')
-rwxr-xr-xsource/blender/freestyle/intern/view_map/Functions0D.cpp2
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;