v1.00.00
This commit is contained in:
@@ -78,6 +78,17 @@
|
||||
</ContentWithTargetPath>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ContentWithTargetPath Include="Libraries\x86\acldb.dll">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
<TargetPath>x86\acldb.dll</TargetPath>
|
||||
</ContentWithTargetPath>
|
||||
<ContentWithTargetPath Include="Libraries\x64\acldb.dll">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
<TargetPath>x64\acldb.dll</TargetPath>
|
||||
</ContentWithTargetPath>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
|
||||
<PackageReference Include="OpenTK" Version="4.8.0" />
|
||||
|
||||
@@ -835,8 +835,8 @@ namespace AssetStudioGUI
|
||||
//StatusStripUpdate("Can be exported to FBX file.");
|
||||
PreviewAnimator(m_Animator);
|
||||
break;
|
||||
case AnimationClip _:
|
||||
StatusStripUpdate("Can be exported with Animator or Objects");
|
||||
case AnimationClip m_AnimationClip:
|
||||
PreviewAnimationClip(m_AnimationClip);
|
||||
break;
|
||||
case MiHoYoBinData m_MiHoYoBinData:
|
||||
PreviewText(m_MiHoYoBinData.AsString);
|
||||
@@ -1288,6 +1288,12 @@ namespace AssetStudioGUI
|
||||
var model = new ModelConverter(m_Animator, Properties.Settings.Default.convertType, Studio.Game, false, Array.Empty<AnimationClip>());
|
||||
PreviewModel(model);
|
||||
}
|
||||
|
||||
private void PreviewAnimationClip(AnimationClip clip)
|
||||
{
|
||||
var str = clip.Convert();
|
||||
PreviewText(str.Replace("\n", "\r\n"));
|
||||
}
|
||||
|
||||
private void PreviewModel(ModelConverter model)
|
||||
{
|
||||
|
||||
@@ -315,6 +315,15 @@ namespace AssetStudioGUI
|
||||
}
|
||||
return false;
|
||||
}
|
||||
public static bool ExportAnimationClip(AssetItem item, string exportPath)
|
||||
{
|
||||
if (!TryExportFile(exportPath, item, ".anim", out var exportFullPath))
|
||||
return false;
|
||||
var m_AnimationClip = (AnimationClip)item.Asset;
|
||||
var str = m_AnimationClip.Convert();
|
||||
File.WriteAllText(exportFullPath, str);
|
||||
return true;
|
||||
}
|
||||
|
||||
public static bool ExportAnimator(AssetItem item, string exportPath, List<AssetItem> animationList = null)
|
||||
{
|
||||
@@ -427,7 +436,7 @@ namespace AssetStudioGUI
|
||||
case ClassIDType.Animator:
|
||||
return ExportAnimator(item, exportPath);
|
||||
case ClassIDType.AnimationClip:
|
||||
return false;
|
||||
return ExportAnimationClip(item, exportPath);
|
||||
case ClassIDType.MiHoYoBinData:
|
||||
return ExportMiHoYoBinData(item, exportPath);
|
||||
default:
|
||||
|
||||
BIN
AssetStudioGUI/Libraries/x64/acldb.dll
Normal file
BIN
AssetStudioGUI/Libraries/x64/acldb.dll
Normal file
Binary file not shown.
BIN
AssetStudioGUI/Libraries/x86/acldb.dll
Normal file
BIN
AssetStudioGUI/Libraries/x86/acldb.dll
Normal file
Binary file not shown.
Reference in New Issue
Block a user