1
0
mirror of synced 2024-12-02 19:17:24 +01:00

Prevent invalid camera z near values.

This commit is contained in:
KillzXGaming 2021-02-13 10:38:11 -05:00
parent 394fad02c5
commit ac385352d9

View File

@ -92,6 +92,7 @@ namespace Toolbox.Library
break;
case "CameraNear":
float.TryParse(node.InnerText, out Runtime.CameraNear);
Runtime.CameraNear = (float)Math.Min(0.1, Runtime.CameraNear);
break;
case "PreviewScale":
float.TryParse(node.InnerText, out Runtime.previewScale);