Fix for crash when double clicking a non animation texture file

This commit is contained in:
MattNL
2023-01-15 18:39:00 -05:00
parent 39afb231f8
commit c9ace98c54

View File

@@ -352,6 +352,8 @@ namespace PckStudio
file = originalAnimationFile;
}
if (!(file.Filename.StartsWith("res/textures/blocks/") || file.Filename.StartsWith("res/textures/items/"))) return;
using (AnimationEditor animationEditor = new AnimationEditor(file))
{
if (animationEditor.ShowDialog(this) == DialogResult.OK)