From 8a9e22c987d81c1e563bb5400fb0abcdb730afc7 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Tue, 8 Apr 2025 16:47:11 +0200 Subject: [PATCH] Fix compilation regression --- Source/Editor/SceneGraph/Actors/StaticModelNode.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Editor/SceneGraph/Actors/StaticModelNode.cs b/Source/Editor/SceneGraph/Actors/StaticModelNode.cs index abda67d90..c87e21ffc 100644 --- a/Source/Editor/SceneGraph/Actors/StaticModelNode.cs +++ b/Source/Editor/SceneGraph/Actors/StaticModelNode.cs @@ -170,7 +170,7 @@ namespace FlaxEditor.SceneGraph.Actors // Refit into the sphere bounds that are usually calculated from mesh box bounds Position = bounds.Center, - Radius = bounds.Radius / Mathf.Max(actor.Scale.MaxValue, 0.0001f) * 0.707f, + Radius = bounds.Radius / (Real)(Mathf.Max((float)actor.Scale.MaxValue, 0.0001f) * 0.707f), }; spawner(collider); }