From 6d676fd5782ba07196c465eae9f64b31502520e8 Mon Sep 17 00:00:00 2001 From: Wojciech Figat Date: Wed, 12 Jan 2022 11:04:21 +0100 Subject: [PATCH] Fix terrain creation dialog regression --- Source/Editor/Tools/Terrain/CreateTerrainDialog.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Source/Editor/Tools/Terrain/CreateTerrainDialog.cs b/Source/Editor/Tools/Terrain/CreateTerrainDialog.cs index 18def0b00..b8e61afdb 100644 --- a/Source/Editor/Tools/Terrain/CreateTerrainDialog.cs +++ b/Source/Editor/Tools/Terrain/CreateTerrainDialog.cs @@ -141,9 +141,6 @@ namespace FlaxEditor.Tools.Terrain private void OnCreate() { - if (_isWorking) - return; - var scene = Level.GetScene(0); if (scene == null) throw new InvalidOperationException("No scene found to add terrain to it!"); @@ -207,7 +204,7 @@ namespace FlaxEditor.Tools.Terrain if (_isWorking) return; - base.OnSubmit(); + OnCreate(); } /// @@ -256,7 +253,7 @@ namespace FlaxEditor.Tools.Terrain OnCancel(); return true; case KeyboardKeys.Return: - OnCreate(); + OnSubmit(); return true; }