mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-07-18 15:18:10 +00:00
Quick fix with animation editor
Fixed a bug that did not display the "Edit Texture Animation" button on textures in the "textures/blocks" and "textures/items" folders that were missing an ANIM tag
This commit is contained in:
@@ -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")
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user