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>2013-04-16 11:13:49 +0400
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2013-04-16 11:13:49 +0400
commit547796db531e43b7e228fc7f158931e89b090a74 (patch)
tree3aaf35222fc677c98e52706f441f8aee49a8f76a /source/blender/freestyle
parent37e73aa368d7f3cd855fab0812673b484ee4f4e9 (diff)
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.
Diffstat (limited to 'source/blender/freestyle')
-rw-r--r--source/blender/freestyle/intern/stroke/BasicStrokeShaders.cpp1
1 files changed, 1 insertions, 0 deletions
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());