Apply transforming properly when transform tool is saved

This commit is contained in:
KillzXGaming 2019-03-24 17:49:32 -04:00
parent a47b77bc7c
commit 05dcf8e12d
5 changed files with 15 additions and 1 deletions

Binary file not shown.

View file

@ -418,6 +418,13 @@ namespace Bfres.Structs
} }
UpdateVertexData(); UpdateVertexData();
} }
else
{
foreach (var shape in shapes) {
shape.SaveVertexBuffer();
}
UpdateVertexData();
}
} }
public override void Unload() public override void Unload()

View file

@ -774,6 +774,7 @@ namespace Toolbox
} }
} }
bool IsChanged = false;
private void MainForm_MdiChildActivate(object sender, EventArgs e) private void MainForm_MdiChildActivate(object sender, EventArgs e)
{ {
if (this.ActiveMdiChild == null) if (this.ActiveMdiChild == null)
@ -784,7 +785,11 @@ namespace Toolbox
// If no any child form, hide tabControl // If no any child form, hide tabControl
else else
{ {
// ResetAnimPanel(); if (IsChanged)
{
ResetAnimPanel();
IsChanged = false;
}
// If child form is new and no has tabPage, // If child form is new and no has tabPage,
// create new tabPage // create new tabPage
@ -864,6 +869,8 @@ namespace Toolbox
SetFormatSettings(GetActiveIFileFormat()); SetFormatSettings(GetActiveIFileFormat());
IsChanged = true;
if (tabForms.SelectedTab != null) if (tabForms.SelectedTab != null)
{ {
tabForms.SelectedTab.BackColor = FormThemes.BaseTheme.TabPageActive; tabForms.SelectedTab.BackColor = FormThemes.BaseTheme.TabPageActive;