Skip to content

Commit

Permalink
ResourceTree: Fix model path resolving
Browse files Browse the repository at this point in the history
  • Loading branch information
Exter-N authored and Ottermandias committed Nov 22, 2023
1 parent 4204262 commit a6f7fd6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Penumbra/Interop/ResourceTree/ResolveContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,7 @@ private unsafe ResourceNode CreateNode(ResourceType type, nint objectAddress, Re
return null;
var mdlResource = mdl->ModelResourceHandle;

if (!Utf8GamePath.FromByteString(ResolveMdlPath(CharacterBase, SlotIndex), out var path))
return null;
var path = ResolveModelPath();

if (Global.Nodes.TryGetValue((path, (nint)mdlResource), out var cached))
return cached;
Expand Down

0 comments on commit a6f7fd6

Please sign in to comment.