1
0
mirror of synced 2024-11-12 02:00:50 +01:00

Fix animation playback for multiple gfbmdls

This commit is contained in:
KillzXGaming 2020-05-10 11:17:23 -04:00
parent 3713433d3b
commit 719e1b107c

View File

@ -142,10 +142,11 @@ namespace FirstPlugin
public override void NextFrame()
{
if (Frame > FrameCount) return;
if (Frame > FrameCount || ActiveModel == null) return;
var skeleton = GetActiveSkeleton();
if (skeleton == null) return;
var skeleton = ActiveModel.Model.Skeleton;
if (skeleton == null)
return;
if (Frame == 0)
skeleton.reset();