spite / THREE.MeshLine

Mesh replacement for THREE.Line
MIT License
2.18k stars 380 forks source link

Matrix inverse #121

Open samyhocine opened 3 years ago

samyhocine commented 3 years ago

Hi,

Beware, threeJS has changed the way to get the inverse matrix.

Line 142 of THREE.MeshLine.js it's:

inverseMatrix.getInverse(this.matrixWorld)

And now it should be:

inverseMatrix.copy(this.matrixWorld).invert()

Best regards ;)

Samy