[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [43568] branches/soc-2008-mxcurioni/source /blender/freestyle/intern/stroke/BasicStrokeShaders.cpp: Removed a hard-coded limit that the backbone stretching effect was applied to

Tamito Kajiyama rd6t-kjym at asahi-net.or.jp
Fri Jan 20 19:03:20 CET 2012


Revision: 43568
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=43568
Author:   kjym3
Date:     2012-01-20 18:03:12 +0000 (Fri, 20 Jan 2012)
Log Message:
-----------
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!

Modified Paths:
--------------
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/stroke/BasicStrokeShaders.cpp

Modified: branches/soc-2008-mxcurioni/source/blender/freestyle/intern/stroke/BasicStrokeShaders.cpp
===================================================================
--- branches/soc-2008-mxcurioni/source/blender/freestyle/intern/stroke/BasicStrokeShaders.cpp	2012-01-20 17:49:17 UTC (rev 43567)
+++ branches/soc-2008-mxcurioni/source/blender/freestyle/intern/stroke/BasicStrokeShaders.cpp	2012-01-20 18:03:12 UTC (rev 43568)
@@ -565,7 +565,7 @@
   int BackboneStretcherShader::shade(Stroke& stroke) const
   {
     float l=stroke.getLength2D();
-    if(l <= 50)
+    if(l <= 1e-6)
       return 0;
 
     StrokeInternal::StrokeVertexIterator v0=stroke.strokeVerticesBegin();



More information about the Bf-blender-cvs mailing list