Use exact value comparison in caching related functions
(cherry picked from commit 9d7c6b26422e127719836944d8d473910190e7d4)
This commit is contained in:
@@ -292,7 +292,7 @@ void NavMeshRuntime::SetTileSize(float tileSize)
|
||||
ScopeLock lock(Locker);
|
||||
|
||||
// Skip if the same or invalid
|
||||
if (Math::NearEqual(_tileSize, tileSize) || tileSize < 1)
|
||||
if (_tileSize == tileSize || tileSize < 1)
|
||||
return;
|
||||
|
||||
// Dispose the existing mesh (its invalid)
|
||||
|
||||
Reference in New Issue
Block a user