mirror of
https://github.com/aelurum/AssetStudio.git
synced 2025-07-19 11:34:16 -04:00
Improve integration with Live2D assets
- Added container-independent method for searching AnimationClip assets (However, it's not really universal, so it can't completely replace the container-dependent method)
This commit is contained in:
@ -75,7 +75,7 @@ namespace CubismLive2DExtractor
|
||||
PhysicsMono = Model.PhysicsController;
|
||||
if (searchFadeMotions && TryGetFadeList(Model.FadeController, out var fadeMono))
|
||||
{
|
||||
FadeMotionLst = selFadeMotionLst = fadeMono;
|
||||
FadeMotionLst = fadeMono;
|
||||
}
|
||||
if (TryGetExpressionList(Model.ExpressionController, out var expressionMono))
|
||||
{
|
||||
@ -107,6 +107,10 @@ namespace CubismLive2DExtractor
|
||||
PoseParts = Model.PosePartList;
|
||||
searchPoseParts = false;
|
||||
}
|
||||
if (Model.ClipMotionList.Count > 0 && selClipMotions == null)
|
||||
{
|
||||
AnimationClips = Model.ClipMotionList;
|
||||
}
|
||||
}
|
||||
foreach (var asset in assetGroupKvp.Value)
|
||||
{
|
||||
@ -205,6 +209,10 @@ namespace CubismLive2DExtractor
|
||||
{
|
||||
Texture2Ds = renderTextureSet.ToList();
|
||||
}
|
||||
if (AnimationClips.Count > 0)
|
||||
{
|
||||
AnimationClips = AnimationClips.Distinct().ToList();
|
||||
}
|
||||
}
|
||||
|
||||
public void ExtractCubismModel(string destPath, Live2DMotionMode motionMode, bool forceBezier = false, int parallelTaskCount = 1)
|
||||
|
Reference in New Issue
Block a user