diff options
author | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2011-09-12 02:28:12 +0400 |
---|---|---|
committer | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2011-09-12 02:28:12 +0400 |
commit | 2ce1945c5e63bee0b02eb7e9032eedee36821ac7 (patch) | |
tree | 63ba365f604cc892aa55b9dc8d405aae9dfd3c8a /source/blender/freestyle/intern/stroke | |
parent | 6be21a91253a823f33060d354333b886c1b95b0a (diff) |
Fix for a minor inconsistency in the use of stroke thickness values in
Strip::createStrip().
Diffstat (limited to 'source/blender/freestyle/intern/stroke')
-rwxr-xr-x | source/blender/freestyle/intern/stroke/StrokeRep.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/freestyle/intern/stroke/StrokeRep.cpp b/source/blender/freestyle/intern/stroke/StrokeRep.cpp index fe405f9261e..18142233672 100755 --- a/source/blender/freestyle/intern/stroke/StrokeRep.cpp +++ b/source/blender/freestyle/intern/stroke/StrokeRep.cpp @@ -236,7 +236,7 @@ Strip::createStrip (const vector<StrokeVertex*>& iStrokeVertices) _vertices[i-2]->setPoint2d(p+thickness[1]*stripDir); vec_tmp = _vertices[i-1]->point2d()-p; - if ((vec_tmp.norm() > thickness[1]*MAX_RATIO_LENGTH_SINGU) || + if ((vec_tmp.norm() > thickness[0]*MAX_RATIO_LENGTH_SINGU) || (dirNorm<ZERO) || (dirPrevNorm<ZERO) || notValid(_vertices[i-1]->point2d()) || (fabs(stripDir * dir)<EPS_SINGULARITY_RENDERER)) |