Merge remote-tracking branch 'origin/master' into 1.6

This commit is contained in:
Wojtek Figat
2023-04-17 13:18:08 +02:00
39 changed files with 954 additions and 362 deletions

View File

@@ -269,7 +269,7 @@ namespace FlaxEngine
public void Normalize()
{
double length = Length;
if (!Mathd.IsZero(length))
if (length >= Mathd.Epsilon)
{
double inv = 1.0 / length;
X *= inv;