Gfmdl and gfpak fixes.
Check gfbmdl textures list on export for exporting active bntx files. Dispose file formats properly for gfbmdl
This commit is contained in:
parent
a6246ace11
commit
45a0ada32e
@ -111,7 +111,17 @@ namespace FirstPlugin
|
||||
|
||||
public void Unload()
|
||||
{
|
||||
foreach (var file in files)
|
||||
{
|
||||
if (file.FileFormat != null)
|
||||
file.FileFormat.Unload();
|
||||
|
||||
file.FileData = null;
|
||||
}
|
||||
|
||||
files.Clear();
|
||||
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
|
||||
public void Save(System.IO.Stream stream)
|
||||
|
@ -218,7 +218,12 @@ namespace FirstPlugin
|
||||
public void Unload()
|
||||
{
|
||||
foreach (var file in files)
|
||||
{
|
||||
if (file.FileFormat != null)
|
||||
file.FileFormat.Unload();
|
||||
|
||||
file.FileData = null;
|
||||
}
|
||||
|
||||
files.Clear();
|
||||
|
||||
|
@ -179,7 +179,10 @@ namespace FirstPlugin
|
||||
var textures = new List<STGenericTexture>();
|
||||
foreach (var bntx in PluginRuntime.bntxContainers)
|
||||
foreach (var tex in bntx.Textures.Values)
|
||||
textures.Add(tex);
|
||||
{
|
||||
if (Model.Textures.Contains(tex.Text))
|
||||
textures.Add(tex);
|
||||
}
|
||||
|
||||
DAE.Export(fileName, settings, model, textures, Model.Skeleton);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user