Skip to content

Commit

Permalink
Make collection resolver not cache early resolved actors that aren't …
Browse files Browse the repository at this point in the history
…characters.
  • Loading branch information
Ottermandias committed Aug 12, 2024
1 parent bb9dd18 commit bedf5da
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Penumbra/Interop/PathResolving/CollectionResolver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -216,10 +216,13 @@ private ResolveData DefaultState(GameObject* gameObject)
private ModCollection? CollectionByAttributes(Actor actor, ref bool notYetReady)
{
if (!actor.IsCharacter)
{
Penumbra.Log.Excessive($"Actor to be identified was not yet a Character.");
notYetReady = true;
return null;
}

// Only handle human models.

if (!IsModelHuman((uint)actor.AsCharacter->CharacterData.ModelCharaId))
return null;

Expand Down

0 comments on commit bedf5da

Please sign in to comment.