Disable edit menu if texture does not support edits.
This commit is contained in:
parent
08ac7084e7
commit
e499369b3c
@ -311,6 +311,7 @@ namespace Toolbox.Library.Forms
|
||||
public void LoadImage(STGenericTexture texture, int arrayLevel = 0)
|
||||
{
|
||||
editBtn.Enabled = false;
|
||||
editToolStripMenuItem.Enabled = false;
|
||||
|
||||
//Disable the file watcher when an image is switched
|
||||
FileWatcher.EnableRaisingEvents = false;
|
||||
@ -336,6 +337,7 @@ namespace Toolbox.Library.Forms
|
||||
if (ActiveTexture.CanEdit)
|
||||
{
|
||||
editBtn.Enabled = true;
|
||||
editToolStripMenuItem.Enabled = true;
|
||||
editBtn.BackgroundImage = Properties.Resources.Edit;
|
||||
}
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user