Fix terrain creation dialog regression
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
@@ -256,7 +253,7 @@ namespace FlaxEditor.Tools.Terrain
|
||||
OnCancel();
|
||||
return true;
|
||||
case KeyboardKeys.Return:
|
||||
OnCreate();
|
||||
OnSubmit();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user