diff --git a/source/blender/freestyle/intern/stroke/StrokeRep.cpp b/source/blender/freestyle/intern/stroke/StrokeRep.cpp index 4eee050c689..cd5a4bfcbb6 100644 --- a/source/blender/freestyle/intern/stroke/StrokeRep.cpp +++ b/source/blender/freestyle/intern/stroke/StrokeRep.cpp @@ -552,7 +552,7 @@ void Strip::computeTexCoordWithTips (const vector& iStrokeVertice uPrev = u; } - if (i >= 2) { + if (v != vend && i >= 2) { // first transition vertex if (fabs(u - uPrev) > ZERO) t = (0.25 - uPrev) / (u - uPrev); @@ -608,7 +608,7 @@ void Strip::computeTexCoordWithTips (const vector& iStrokeVertice } if (tipEnd) { - if (i >= 2) { + if (v != vend && i >= 2) { // second transition vertex if (fabs(u - uPrev) > ZERO) t = (float(tiles) - uPrev) / (u - uPrev);