spite / THREE.MeshLine

Mesh replacement for THREE.Line
MIT License
2.14k stars 381 forks source link

copyArray uses undefined array #23

Closed Jared-Sprague closed 7 years ago

Jared-Sprague commented 7 years ago

this.attributes.index.copyArray(new Uint16Array(this.index));

should be:

this.attributes.index.copyArray(new Uint16Array(this.indices_array));

Otherwise Firefox crashes with invalid argument error because this.index is undefined.

spite commented 7 years ago

Good catch!