diff --git a/MinecraftUSkinEditor/Forms/Form1.cs b/MinecraftUSkinEditor/Forms/Form1.cs index 18984c5c..36d7f9e9 100644 --- a/MinecraftUSkinEditor/Forms/Form1.cs +++ b/MinecraftUSkinEditor/Forms/Form1.cs @@ -292,17 +292,6 @@ namespace PckStudio meta.Tag = entry; treeMeta.Nodes.Add(meta); - //Check for Animated Texture - if ((mf.name.StartsWith("res/textures/blocks/") || mf.name.StartsWith("res/textures/items/")) && (!mf.name.EndsWith("clock.png") && (!mf.name.EndsWith("compass.png")))) - { - buttonEdit.Text = "EDIT TEXTURE ANIMATION"; - buttonEdit.Visible = true; - } - else - { - buttonEdit.Visible = false; - } - //Check for if file contains model data if (entry[0].ToString()=="BOX") { @@ -330,6 +319,17 @@ namespace PckStudio } } + //Check for Animated Texture + if ((mf.name.StartsWith("res/textures/blocks/") || mf.name.StartsWith("res/textures/items/")) && (!mf.name.EndsWith("clock.png") && (!mf.name.EndsWith("compass.png")))) + { + buttonEdit.Text = "EDIT TEXTURE ANIMATION"; + buttonEdit.Visible = true; + } + else + { + buttonEdit.Visible = false; + } + //If selected item is a image, its displayed with proper dimensions in image box if (Path.GetExtension(mf.name) == ".png") {