diff --git a/Source/Editor/CustomEditors/Editors/ActorTransformEditor.cs b/Source/Editor/CustomEditors/Editors/ActorTransformEditor.cs
index c1179e393..131a9b10a 100644
--- a/Source/Editor/CustomEditors/Editors/ActorTransformEditor.cs
+++ b/Source/Editor/CustomEditors/Editors/ActorTransformEditor.cs
@@ -24,7 +24,7 @@ namespace FlaxEditor.CustomEditors.Editors
///
/// The Z axis color.
///
- public static Color AxisColorZ = new Color(0.0f, 0.0235294f, 0.9f, 1.0f);
+ public static Color AxisColorZ = new Color(0.0f, 0.42352f, 0.8f, 1.0f);
///
/// Custom editor for actor position property.
diff --git a/Source/Editor/Windows/EditGameWindow.cs b/Source/Editor/Windows/EditGameWindow.cs
index dbeab28b1..5f91aebe6 100644
--- a/Source/Editor/Windows/EditGameWindow.cs
+++ b/Source/Editor/Windows/EditGameWindow.cs
@@ -257,7 +257,7 @@ namespace FlaxEditor.Windows
private void UpdateCameraPreview()
{
// Disable rendering preview during GI baking
- if (Editor.StateMachine.CurrentState.IsPerformanceHeavy)
+ if (Editor == null || Editor.StateMachine.CurrentState.IsPerformanceHeavy)
{
HideAllCameraPreviews();
return;
@@ -406,6 +406,14 @@ namespace FlaxEditor.Windows
}
}
+ ///
+ protected override void OnSizeChanged()
+ {
+ base.OnSizeChanged();
+
+ UpdateCameraPreview();
+ }
+
///
public override void OnDestroy()
{