Fix animation playback for multiple gfbmdls
This commit is contained in:
parent
3713433d3b
commit
719e1b107c
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user