AnimationEditor.cs - Fixed 'CreateImageList' having wrong 'ImageLayoutDirection' when parsing frame textures

This commit is contained in:
miku-666
2023-04-29 15:48:30 +02:00
parent 406dbc3ab0
commit 92bc2a20ea

View File

@@ -49,7 +49,7 @@ namespace PckStudio.Forms.Editor
using MemoryStream textureMem = new MemoryStream(animationFile.Data);
var texture = new Bitmap(textureMem);
var frameTextures = texture.CreateImageList(ImageLayoutDirection.Horizontal);
var frameTextures = texture.CreateImageList(ImageLayoutDirection.Vertical);
currentAnimation = animationFile.Properties.HasProperty("ANIM")
? new Animation(frameTextures, animationFile.Properties.GetPropertyValue("ANIM"))