From 547796db531e43b7e228fc7f158931e89b090a74 Mon Sep 17 00:00:00 2001 From: Tamito Kajiyama Date: Tue, 16 Apr 2013 07:13:49 +0000 Subject: [PATCH] Fix for line instability with the Polygonization geometry modifier. 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 | 1 + 1 file changed, 1 insertion(+) diff --git a/source/blender/freestyle/intern/stroke/BasicStrokeShaders.cpp b/source/blender/freestyle/intern/stroke/BasicStrokeShaders.cpp index c507f137f4c..af3b7f09c31 100644 --- a/source/blender/freestyle/intern/stroke/BasicStrokeShaders.cpp +++ b/source/blender/freestyle/intern/stroke/BasicStrokeShaders.cpp @@ -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());