Skip to content

Commit

Permalink
Удаление Progressive в Add meshes
Browse files Browse the repository at this point in the history
  • Loading branch information
VaIeroK committed Nov 15, 2022
1 parent c2d6a1b commit c6dcb9e
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions OGF tool/Forms/AddMesh.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,16 @@ public AddMesh(ref OGF_Model Main_OGF, OGF_Model Loaded_OGF)
OGF = Main_OGF;
LoadedOGF = Loaded_OGF;

if (!OGF.IsProgressive())
LoadedOGF.RemoveProgressive(0.0f);
if (!OGF.IsProgressive() && LoadedOGF.IsProgressive() || OGF.IsProgressive() && !LoadedOGF.IsProgressive())
{
if (MessageBox.Show("One of the two models has progressive meshes, delete progressive to continue?", "OGF Editor", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
{
OGF.RemoveProgressive(0.0f);
LoadedOGF.RemoveProgressive(0.0f);
}
else
Close();
}

for (int i = 0; i < LoadedOGF.childs.Count; i++)
{
Expand Down

0 comments on commit c6dcb9e

Please sign in to comment.