Fix last frame display in param animation viewer
This commit is contained in:
parent
7bd1abf12a
commit
e4e58a3bfb
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -79,7 +79,7 @@ namespace FirstPlugin.Forms
|
||||
ColumnHeader valueColumn = new ColumnHeader() { Text = $"{(TexSRT)track.AnimDataOffset}" };
|
||||
listViewCustom1.Columns.Add(valueColumn);
|
||||
}
|
||||
for (int Frame = 0; Frame < anim.FrameCount; Frame++)
|
||||
for (int Frame = 0; Frame <= anim.FrameCount; Frame++)
|
||||
{
|
||||
if (IsKeyed(paramAnim, Frame))
|
||||
{
|
||||
@ -104,7 +104,7 @@ namespace FirstPlugin.Forms
|
||||
ColumnHeader valueColumn = new ColumnHeader() { Text = $"Value {col}" };
|
||||
listViewCustom1.Columns.Add(valueColumn);
|
||||
}
|
||||
for (int Frame = 0; Frame < anim.FrameCount; Frame++)
|
||||
for (int Frame = 0; Frame <= anim.FrameCount; Frame++)
|
||||
{
|
||||
if (IsKeyed(paramAnim, Frame))
|
||||
{
|
||||
|
Binary file not shown.
Binary file not shown.
@ -31,7 +31,7 @@ namespace Switch_Toolbox.Library.Forms
|
||||
|
||||
for (int i = 0; i < Files.Count; i++)
|
||||
{
|
||||
if (Files[i].FileType == FileType.Image)
|
||||
if (Files[i].FileType == FileType.Image || Files[i].FileType == FileType.Archive)
|
||||
{
|
||||
Textures.AddRange(GetTextures(Files[i]));
|
||||
}
|
||||
@ -156,8 +156,13 @@ namespace Switch_Toolbox.Library.Forms
|
||||
|
||||
if (Format is TreeNodeFile)
|
||||
{
|
||||
foreach (var node in ((TreeNodeFile)Format).Nodes)
|
||||
if (node is STGenericTexture) Textures.Add((STGenericTexture)node);
|
||||
foreach (var node in TreeViewExtensions.Collect(((TreeNodeFile)Format).Nodes))
|
||||
{
|
||||
if (node is STGenericTexture)
|
||||
Textures.Add((STGenericTexture)node);
|
||||
else if (node is IFileFormat)
|
||||
GetTextures((IFileFormat)node);
|
||||
}
|
||||
}
|
||||
|
||||
return Textures;
|
||||
|
Loading…
Reference in New Issue
Block a user