diff options
author | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2014-05-05 17:30:00 +0400 |
---|---|---|
committer | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2014-05-05 17:30:00 +0400 |
commit | ef1e511bb6caaca940f603fa41e1801f842f150b (patch) | |
tree | ef619322b3955cecd9a1f656d8dec4913a8a07c1 /source/blender/freestyle/intern/stroke | |
parent | f5d9f45a6fe6af455fb3efadb3e7644d134adcf6 (diff) |
Another attempt to fully fix T40020: Freestyle: dashed lines crashes blender.
Problem report by flokkievids through rB047c3aa728a4bb944616a084805988714b796d52#1.
Thanks!
Diffstat (limited to 'source/blender/freestyle/intern/stroke')
-rw-r--r-- | source/blender/freestyle/intern/stroke/StrokeRep.cpp | 4 |
1 files 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<StrokeVertex*>& 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<StrokeVertex*>& 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); |