Fix replacing wii u bflims in the layout editor

This commit is contained in:
KillzXGaming 2020-05-14 17:46:02 -04:00
parent 587871b653
commit a79082ecbe
2 changed files with 11 additions and 0 deletions

View file

@ -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();
}
}

View file

@ -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!");
}
}