Fixed call to lengthSq

This commit is contained in:
Richard Davey 2024-07-12 16:58:51 +01:00
parent 3ff119ae9e
commit 5f4dfa4fb8

View file

@ -1348,7 +1348,7 @@ var Matrix4 = new Class({
_z.subVectors(eye, target);
if (_z.getLengthSquared() === 0)
if (_z.lengthSq() === 0)
{
// eye and target are in the same position
_z.z = 1;