Remove all resource data from ftex clearing to prevent key issues
This commit is contained in:
parent
d93fe604be
commit
23465c5e5b
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -396,12 +396,13 @@ namespace Bfres.Structs
|
|||||||
|
|
||||||
if (result == DialogResult.Yes)
|
if (result == DialogResult.Yes)
|
||||||
{
|
{
|
||||||
foreach (var node in Nodes)
|
foreach (TreeNode node in Nodes)
|
||||||
{
|
{
|
||||||
if (node is STGenericWrapper)
|
if (node is STGenericWrapper)
|
||||||
{
|
{
|
||||||
((STGenericWrapper)node).Unload();
|
((STGenericWrapper)node).Unload();
|
||||||
RemoveChild(((STGenericWrapper)node));
|
RemoveChild(((STGenericWrapper)node));
|
||||||
|
ResourceNodes.Remove(node.Text);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -129,6 +129,12 @@ namespace Bfres.Structs
|
|||||||
return importer;
|
return importer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override void Unload()
|
||||||
|
{
|
||||||
|
DisposeRenderable();
|
||||||
|
Nodes.Clear();
|
||||||
|
}
|
||||||
|
|
||||||
public void ReplaceImage(Image image, string FileName)
|
public void ReplaceImage(Image image, string FileName)
|
||||||
{
|
{
|
||||||
GTXImporterSettings setting = SetImporterSettings(image, FileName);
|
GTXImporterSettings setting = SetImporterSettings(image, FileName);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user