Remove unecessary progress bar for updating vertices as it's usually quick enough.
This commit is contained in:
parent
157ff75b79
commit
28b231caaa
Binary file not shown.
@ -768,14 +768,6 @@ namespace FirstPlugin
|
||||
return;
|
||||
|
||||
UpdateModelList();
|
||||
|
||||
STProgressBar progressBar = new STProgressBar();
|
||||
progressBar.Task = "Updating Vertex Data...";
|
||||
progressBar.Value = 0;
|
||||
progressBar.StartPosition = FormStartPosition.CenterScreen;
|
||||
progressBar.Show();
|
||||
progressBar.Refresh();
|
||||
|
||||
Loaded = false;
|
||||
|
||||
DisplayVertex[] Vertices;
|
||||
@ -798,11 +790,6 @@ namespace FirstPlugin
|
||||
|
||||
for (int shp = 0; shp < models[m].shapes.Count; shp++)
|
||||
{
|
||||
progressBar.Task = "Updating Shape... " + models[m].shapes[shp].Text;
|
||||
value = ((shp * 100) / TotalShapeCount);
|
||||
progressBar.Value = value;
|
||||
progressBar.Refresh();
|
||||
|
||||
models[m].shapes[shp].Offset = poffset * 4;
|
||||
List<DisplayVertex> pv = models[m].shapes[shp].CreateDisplayVertices(models[m]);
|
||||
Vs.AddRange(pv);
|
||||
@ -816,9 +803,6 @@ namespace FirstPlugin
|
||||
}
|
||||
}
|
||||
|
||||
progressBar.Value = 100;
|
||||
progressBar.Close();
|
||||
|
||||
// Binds
|
||||
Vertices = Vs.ToArray();
|
||||
Faces = Ds.ToArray();
|
||||
|
Loading…
x
Reference in New Issue
Block a user