ResourceTree: Fix model path resolving

This commit is contained in:
Exter-N 2023-11-21 19:14:01 +01:00 committed by Ottermandias
parent 4204262236
commit a6f7fd623c

View file

@ -154,8 +154,7 @@ internal partial record ResolveContext(GlobalResolveContext Global, Pointer<Char
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;