From ef1e511bb6caaca940f603fa41e1801f842f150b Mon Sep 17 00:00:00 2001 From: Tamito Kajiyama Date: Mon, 5 May 2014 22:30:00 +0900 Subject: [PATCH] Another attempt to fully fix T40020: Freestyle: dashed lines crashes blender. Problem report by flokkievids through rB047c3aa728a4bb944616a084805988714b796d52#1. Thanks! --- source/blender/freestyle/intern/stroke/StrokeRep.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);