From c6aa18c47cff37e1f10361c93908ebbd68e9ece4 Mon Sep 17 00:00:00 2001 From: Chandler Cox Date: Sat, 16 Mar 2024 13:20:18 -0500 Subject: [PATCH] Remove import UI on Animation not created by an import. --- Source/Editor/Windows/Assets/AnimationWindow.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/Editor/Windows/Assets/AnimationWindow.cs b/Source/Editor/Windows/Assets/AnimationWindow.cs index ae87826b0..2411daf86 100644 --- a/Source/Editor/Windows/Assets/AnimationWindow.cs +++ b/Source/Editor/Windows/Assets/AnimationWindow.cs @@ -186,6 +186,10 @@ namespace FlaxEditor.Windows.Assets base.Initialize(layout); + // Ignore import settings GUI if the type is not animation. This removes the import UI if the animation asset was not created using an import. + if (proxy.ImportSettings.Settings.Type != FlaxEngine.Tools.ModelTool.ModelType.Animation) + return; + // Import Settings { var group = layout.Group("Import Settings");