Another attempt to fully fix T40020: Freestyle: dashed lines crashes blender.

Problem report by flokkievids through rB047c3aa728a4bb944616a084805988714b796d52#1.
Thanks!
This commit is contained in:
Tamito Kajiyama
2014-05-05 22:30:00 +09:00
parent f5d9f45a6f
commit ef1e511bb6

View File

@@ -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);