mirror of
https://github.com/xivdev/Penumbra.git
synced 2026-02-19 06:17:45 +01:00
Make human.pbd moddable
This commit is contained in:
parent
12532dee28
commit
efdd5a824b
11 changed files with 202 additions and 12 deletions
|
|
@ -9,6 +9,7 @@ using Penumbra.Collections;
|
|||
using Penumbra.GameData.Data;
|
||||
using Penumbra.GameData.Enums;
|
||||
using Penumbra.GameData.Structs;
|
||||
using Penumbra.Interop.Services;
|
||||
using Penumbra.String;
|
||||
using Penumbra.String.Classes;
|
||||
using Penumbra.UI;
|
||||
|
|
@ -144,6 +145,14 @@ internal unsafe partial record ResolveContext(
|
|||
return GetOrCreateNode(ResourceType.Imc, 0, imc, path);
|
||||
}
|
||||
|
||||
public ResourceNode? CreateNodeFromPbd(ResourceHandle* pbd)
|
||||
{
|
||||
if (pbd == null)
|
||||
return null;
|
||||
|
||||
return GetOrCreateNode(ResourceType.Pbd, 0, pbd, PreBoneDeformerReplacer.PreBoneDeformerPath);
|
||||
}
|
||||
|
||||
public ResourceNode? CreateNodeFromTex(TextureResourceHandle* tex, string gamePath)
|
||||
{
|
||||
if (tex == null)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue