Fix lifetime bug with first PolyLine in InfiniteLine

This commit is contained in:
Ryan Huffman 2015-10-30 16:31:15 -07:00
parent 2cd2af2b13
commit 77e0023b43

View file

@ -102,7 +102,7 @@ InfiniteLine = function(position, color, lifetime) {
this.position = position;
this.color = color;
this.lifetime = lifetime === undefined ? DEFAULT_LIFETIME : lifetime;
this.lines = [new PolyLine(position, color, 0.01)];
this.lines = [];
this.size = 0;
};