mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 18:27:24 +01:00
ResourceTree: Fix model path resolving
This commit is contained in:
parent
4204262236
commit
a6f7fd623c
1 changed files with 1 additions and 2 deletions
|
|
@ -154,8 +154,7 @@ internal partial record ResolveContext(GlobalResolveContext Global, Pointer<Char
|
||||||
return null;
|
return null;
|
||||||
var mdlResource = mdl->ModelResourceHandle;
|
var mdlResource = mdl->ModelResourceHandle;
|
||||||
|
|
||||||
if (!Utf8GamePath.FromByteString(ResolveMdlPath(CharacterBase, SlotIndex), out var path))
|
var path = ResolveModelPath();
|
||||||
return null;
|
|
||||||
|
|
||||||
if (Global.Nodes.TryGetValue((path, (nint)mdlResource), out var cached))
|
if (Global.Nodes.TryGetValue((path, (nint)mdlResource), out var cached))
|
||||||
return cached;
|
return cached;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue