mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-10 15:14:55 +00:00
Prevent invalid camera z near values.
This commit is contained in:
parent
394fad02c5
commit
ac385352d9
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
@ -281,7 +282,7 @@ namespace Toolbox.Library
|
|||
bool.TryParse(node.InnerText, out Runtime.LayoutEditor.DisplayGrid);
|
||||
break;
|
||||
case "TitleKeys":
|
||||
Runtime.SwitchKeys.TitleKeys = node.InnerText;
|
||||
Runtime.SwitchKeys.TitleKeys = node.InnerText;
|
||||
break;
|
||||
case "ProdKeys":
|
||||
Runtime.SwitchKeys.ProdKeys = node.InnerText;
|
||||
|
|
Loading…
Reference in a new issue