Reset channel display when another image is clicked on
This commit is contained in:
parent
470b0ead75
commit
8a352111de
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -171,6 +171,8 @@ namespace Switch_Toolbox.Library.Forms
|
||||
|
||||
public void LoadImage(STGenericTexture texture)
|
||||
{
|
||||
ResetChannelEditor();
|
||||
|
||||
HasBeenEdited = false;
|
||||
|
||||
if (texture.CanEdit)
|
||||
@ -179,8 +181,6 @@ namespace Switch_Toolbox.Library.Forms
|
||||
adjustmentsToolStripMenuItem.Enabled = true;
|
||||
}
|
||||
|
||||
propertiesEditor.Reset();
|
||||
|
||||
ActiveTexture = texture;
|
||||
CurMipDisplayLevel = 0;
|
||||
CurArrayDisplayLevel = 0;
|
||||
@ -484,6 +484,12 @@ namespace Switch_Toolbox.Library.Forms
|
||||
|
||||
propertiesEditor.LoadImage(new Bitmap(bitmap), this);
|
||||
}
|
||||
|
||||
private void ResetChannelEditor()
|
||||
{
|
||||
propertiesEditor.ResetChannels();
|
||||
}
|
||||
|
||||
private void InvokeMethod()
|
||||
{
|
||||
}
|
||||
@ -635,7 +641,6 @@ namespace Switch_Toolbox.Library.Forms
|
||||
}
|
||||
|
||||
UpdateMipDisplay();
|
||||
propertiesEditor.Reset();
|
||||
}
|
||||
|
||||
private void resizeToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
|
@ -72,11 +72,10 @@ namespace Switch_Toolbox.Library.Forms
|
||||
|
||||
public void OnPropertyChanged() { }
|
||||
|
||||
public void Reset()
|
||||
public void ResetChannels()
|
||||
{
|
||||
// foreach (var page in tempPages)
|
||||
// stTabControl1.TabPages.Remove(page);
|
||||
|
||||
imgList.Images.Clear();
|
||||
channelListView.Refresh();
|
||||
}
|
||||
|
||||
ImageEditorBase imageEditor;
|
||||
|
Loading…
x
Reference in New Issue
Block a user