Remove import UI on Animation not created by an import.

This commit is contained in:
Chandler Cox
2024-03-16 13:20:18 -05:00
parent c6bb8f1784
commit c6aa18c47c

View File

@@ -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");