Fix for line instability with the Polygonization geometry modifier.
authorTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>
Tue, 16 Apr 2013 07:13:49 +0000 (07:13 +0000)
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>
Tue, 16 Apr 2013 07:13:49 +0000 (07:13 +0000)
Extra long straight lines showed up randomly due to the use of an uninitialized
variable as a line length parameter.

source/blender/freestyle/intern/stroke/BasicStrokeShaders.cpp

index c507f137f4c36f7224a0da51f5ed05ab4c4a25de..af3b7f09c313f02a6d9a10f45416c2d89384061e 100644 (file)
@@ -925,6 +925,7 @@ public:
 
        CurvePiece(StrokeInternal::StrokeVertexIterator b, StrokeInternal::StrokeVertexIterator l, int iSize)
        {
+               _error = 0.0f;
                _begin = b;
                _last = l;
                A = Vec2d((_begin)->x(), (_begin)->y());