Removed a hard-coded limit that the backbone stretching effect was applied to

stokes with 2D length longer than 50.  Problem report by Forrest Gimp, thanks!
This commit is contained in:
Tamito Kajiyama
2012-01-20 18:03:12 +00:00
parent 2453b16717
commit 0634b4decd

View File

@@ -565,7 +565,7 @@ namespace StrokeShaders {
int BackboneStretcherShader::shade(Stroke& stroke) const
{
float l=stroke.getLength2D();
if(l <= 50)
if(l <= 1e-6)
return 0;
StrokeInternal::StrokeVertexIterator v0=stroke.strokeVerticesBegin();