From cf2e750333474ed44bd631d87e85e5445c8db8c7 Mon Sep 17 00:00:00 2001 From: Razmoth <32140579+Razmoth@users.noreply.github.com> Date: Sun, 18 Feb 2024 13:18:59 +0400 Subject: [PATCH] - [Core] bug fixes #75 --- AssetStudio.GUI/AssetBrowser.cs | 4 ++-- AssetStudio.GUI/Studio.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/AssetStudio.GUI/AssetBrowser.cs b/AssetStudio.GUI/AssetBrowser.cs index c04c874..7bdec1e 100644 --- a/AssetStudio.GUI/AssetBrowser.cs +++ b/AssetStudio.GUI/AssetBrowser.cs @@ -220,8 +220,8 @@ namespace AssetStudio.GUI break; case Mesh _ when ClassIDType.Mesh.CanExport(): case TextAsset _ when ClassIDType.TextAsset.CanExport(): - case AnimationClip _ when ClassIDType.Font.CanExport(): - case Font _ when ClassIDType.GameObject.CanExport(): + case AnimationClip _ when ClassIDType.AnimationClip.CanExport(): + case Font _ when ClassIDType.Font.CanExport(): case MovieTexture _ when ClassIDType.MovieTexture.CanExport(): case Sprite _ when ClassIDType.Sprite.CanExport(): case Material _ when ClassIDType.Material.CanExport(): diff --git a/AssetStudio.GUI/Studio.cs b/AssetStudio.GUI/Studio.cs index c503d86..ba1b130 100644 --- a/AssetStudio.GUI/Studio.cs +++ b/AssetStudio.GUI/Studio.cs @@ -548,7 +548,7 @@ namespace AssetStudio.GUI case AssetGroupOption.ByContainer: //container path if (!string.IsNullOrEmpty(asset.Container)) { - exportPath = Path.Combine(savePath, Path.GetDirectoryName(asset.Container)); + exportPath = Path.HasExtension(asset.Container) ? Path.Combine(savePath, Path.GetDirectoryName(asset.Container)) : Path.Combine(savePath, asset.Container); } else {