Fix for editor view's cached "CameraNearPlaneValue" getting overwritten.

Changing the editor's camera sometimes results in empty views in editors. It was caused by writing the _farPlane with the wrong name in the cache.
This commit is contained in:
z1dev
2024-01-02 00:08:00 +01:00
parent b275ffc146
commit e0cb94ec74
+1 -1
View File
@@ -1113,7 +1113,7 @@ namespace FlaxEditor.Viewport
private void OnFarPlaneChanged(FloatValueBox control)
{
_farPlane = control.Value;
_editor.ProjectCache.SetCustomData("CameraNearPlaneValue", _farPlane.ToString());
_editor.ProjectCache.SetCustomData("CameraFarPlaneValue", _farPlane.ToString());
}
/// <summary>