Support loading txtg into gui and exporting them
This commit is contained in:
parent
357b8b2bc9
commit
46162e5379
@ -835,7 +835,15 @@ namespace FirstPlugin
|
||||
}
|
||||
|
||||
if (isMeshCodec)
|
||||
{
|
||||
MeshCodec.PrepareTexToGo(resFile);
|
||||
STTextureFolder texfolder = new STTextureFolder("TexToGo");
|
||||
this.Nodes.Add(texfolder);
|
||||
foreach (var tex in MeshCodec.TextureList)
|
||||
{
|
||||
texfolder.Nodes.Add(tex);
|
||||
}
|
||||
}
|
||||
|
||||
DrawableContainer.Drawables.Add(BFRESRender);
|
||||
|
||||
|
@ -588,6 +588,8 @@ namespace Bfres.Structs
|
||||
if (ftexCont.ResourceNodes.ContainsKey(texref))
|
||||
textures.Add((FTEX)ftexCont.ResourceNodes[texref]);
|
||||
}
|
||||
if (PluginRuntime.TextureCache.ContainsKey(texref))
|
||||
textures.Add(PluginRuntime.TextureCache[texref]);
|
||||
}
|
||||
|
||||
return textures;
|
||||
|
Loading…
x
Reference in New Issue
Block a user