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;


_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to