mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-22 12:33:12 +00:00
Fix replacing wii u bflims in the layout editor
This commit is contained in:
parent
587871b653
commit
a79082ecbe
2 changed files with 11 additions and 0 deletions
|
@ -92,6 +92,8 @@ namespace FirstPlugin
|
|||
|
||||
private void UpdateForm(ImageEditorBase form)
|
||||
{
|
||||
if (form == null) return;
|
||||
|
||||
if (image != null)
|
||||
{
|
||||
Properties prop = new Properties();
|
||||
|
@ -332,6 +334,9 @@ namespace FirstPlugin
|
|||
|
||||
LoadComponents(Format, ftex.UseBc4Alpha);
|
||||
|
||||
if (RenderableTex != null) //Reload bflim in opengl if used
|
||||
LoadOpenGLTexture();
|
||||
|
||||
UpdateForm();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -374,9 +374,15 @@ namespace LayoutBXLYT
|
|||
if (texture == null)
|
||||
return;
|
||||
|
||||
Console.WriteLine("texture edited!");
|
||||
|
||||
TextureList[textName] = texture;
|
||||
//Update the icon by reloading all of them
|
||||
|
||||
Console.WriteLine("LoadTextures!");
|
||||
LoadTextures(ParentEditor, ActiveLayout, TextureList);
|
||||
Console.WriteLine("FIN!");
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue