Skip to content

Commit 40e0bd0

Browse files
committed
[CLI] Fix export of some fbx models
1 parent e1e4343 commit 40e0bd0

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

AssetStudio/AssetsManager.cs

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -57,16 +57,13 @@ public UnityVersion SpecifyUnityVersion
5757

5858
public void SetAssetFilter(params ClassIDType[] classIDTypes)
5959
{
60-
if (filteredAssetTypesList.Count == 0)
60+
filteredAssetTypesList.UnionWith(new[]
6161
{
62-
filteredAssetTypesList.UnionWith(new HashSet<ClassIDType>
63-
{
64-
ClassIDType.AssetBundle,
65-
ClassIDType.ResourceManager,
66-
ClassIDType.GameObject,
67-
ClassIDType.Transform,
68-
});
69-
}
62+
ClassIDType.AssetBundle,
63+
ClassIDType.ResourceManager,
64+
ClassIDType.GameObject,
65+
ClassIDType.Transform,
66+
});
7067

7168
if (classIDTypes.Contains(ClassIDType.MonoBehaviour))
7269
{

AssetStudioCLI/Options/CLIOptions.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ public static void ParseArgs(string[] args)
572572
case "l2d":
573573
case "live2d":
574574
o_workMode.Value = WorkMode.Live2D;
575-
o_exportAssetTypes.Value = new List<ClassIDType>()
575+
o_exportAssetTypes.Value = new List<ClassIDType>
576576
{
577577
ClassIDType.AnimationClip,
578578
ClassIDType.MonoBehaviour,
@@ -581,13 +581,14 @@ public static void ParseArgs(string[] args)
581581
break;
582582
case "splitobjects":
583583
o_workMode.Value = WorkMode.SplitObjects;
584-
o_exportAssetTypes.Value = new List<ClassIDType>()
584+
o_exportAssetTypes.Value = new List<ClassIDType>
585585
{
586586
ClassIDType.Texture2D,
587587
ClassIDType.Material,
588588
ClassIDType.Mesh,
589589
ClassIDType.MeshRenderer,
590590
ClassIDType.MeshFilter,
591+
ClassIDType.SkinnedMeshRenderer,
591592
};
592593
break;
593594
default:

0 commit comments

Comments
 (0)