pull/544/head
ChenX 5 years ago
parent c988ac1b7f
commit 671139c6d2

@ -90,18 +90,19 @@ export class Polyline extends Curve
pts.push(data.pt);
buls.push(-data.bul);
}
let lastBul = buls.pop();
buls.reverse();
buls.push(buls[0])
buls.shift();
buls.push(lastBul);
pts.reverse();
this._LineData.length = 0;
for (let i = 0; i < pts.length; i++)
{
this._LineData.push({ pt: pts[i], bul: buls[i] });
let d = this._LineData[i];
d.pt = pts[i];
d.bul = buls[i];
}
this.Update();
return this;
}

Loading…
Cancel
Save