Use exact value comparison in caching related functions
(cherry picked from commit 9d7c6b26422e127719836944d8d473910190e7d4)
This commit is contained in:
@@ -41,7 +41,7 @@ float EnvironmentProbe::GetRadius() const
|
||||
void EnvironmentProbe::SetRadius(float value)
|
||||
{
|
||||
value = Math::Max(0.0f, value);
|
||||
if (Math::NearEqual(value, _radius))
|
||||
if (value == _radius)
|
||||
return;
|
||||
|
||||
_radius = value;
|
||||
|
||||
Reference in New Issue
Block a user