Skip to content

Commit

Permalink
Merge pull request #25 from MediaMoots/dev
Browse files Browse the repository at this point in the history
Fix GetActiveSkeletonModels giving up after the first search
  • Loading branch information
KillzXGaming authored Jan 29, 2024
2 parents 3ac7c6f + 403897a commit 184a0bb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Plugins/CafeLibrary/Bfres/Animations/BfresSkeletalAnim.cs
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,8 @@ STSkeleton IsSkeletonInAnimation(STSkeleton skeleton)
foreach (var model in models)
if (model.ModelData.Name != "Pupil") //MK8 ignore pupils
list.Add(model.ModelData);
return list;
if (list.Count > 0)
return list;
}

//Lastly check for active render and if skeleton is visible/active
Expand All @@ -381,7 +382,8 @@ STSkeleton IsSkeletonInAnimation(STSkeleton skeleton)
if (file.IsVisible && model.IsVisible && model.ModelData.Name != "Pupil") //MK8 ignore pupils
list.Add(model.ModelData);
}
return list;
if (list.Count > 0)
return list;
}
return null;
}
Expand Down

0 comments on commit 184a0bb

Please sign in to comment.