mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-22 12:33:12 +00:00
Apply transforming properly when transform tool is saved
This commit is contained in:
parent
a47b77bc7c
commit
05dcf8e12d
5 changed files with 15 additions and 1 deletions
Binary file not shown.
|
@ -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()
|
||||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue