Skip to content

Commit

Permalink
Fix moving animation
Browse files Browse the repository at this point in the history
  • Loading branch information
Arch-Mina committed Dec 23, 2020
1 parent 1d7bcb9 commit c2e743b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Assets Editor/DatEditor.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1176,6 +1176,7 @@ private void NewObjectDialogHost_OnDialogClosing(object sender, DialogClosingEve

if (NObjectType.SelectedIndex == 0)
{
frameIdleGroup.Id = 0;
frameIdleGroup.FixedFrameGroup = FIXED_FRAME_GROUP.OutfitIdle;
if (int.Parse(NIdleGroupCount.Text) > 1)
{
Expand All @@ -1193,7 +1194,8 @@ private void NewObjectDialogHost_OnDialogClosing(object sender, DialogClosingEve
if (NMoveGroup.IsChecked == true)
{
FrameGroup frameMoveGroup = new FrameGroup();
frameMoveGroup.FixedFrameGroup = FIXED_FRAME_GROUP.OutfitIdle;
frameMoveGroup.Id = 1;
frameMoveGroup.FixedFrameGroup = FIXED_FRAME_GROUP.OutfitMoving;
frameMoveGroup.SpriteInfo = new SpriteInfo();
frameMoveGroup.SpriteInfo.Layers = uint.Parse(NLayers.Text);
frameMoveGroup.SpriteInfo.PatternWidth = uint.Parse(NPatternX.Text);
Expand Down Expand Up @@ -1324,6 +1326,5 @@ private void SpriteExport_PreviewMouseLeftButtonDown(object sender, MouseButtonE

}
}

}
}

0 comments on commit c2e743b

Please sign in to comment.