Adjust blank names

This commit is contained in:
KillzXGaming 2019-05-11 16:19:39 -04:00
parent ba6790abf5
commit 59adf0f60e
3 changed files with 4 additions and 3 deletions

Binary file not shown.

View file

@ -68,16 +68,17 @@ namespace FirstPlugin
var matWrapper = new MTOBWrapper() { BcresParent = bcres };
matWrapper.Load(material);
if (matWrapper.Text == string.Empty)
matWrapper.Text = $"Material {Index}";
matWrapper.Text = $"Material {Index++}";
MaterialFolder.Nodes.Add(matWrapper);
}
Index = 0;
foreach (var mesh in model.Meshes)
{
var meshWrapper = new SOBJWrapper(this, mesh) { BcresParent = bcres };
MeshFolder.Nodes.Add(meshWrapper);
if (MeshFolder.Text == string.Empty)
MeshFolder.Text = $"Mesh {Index}";
if (meshWrapper.Text == string.Empty)
meshWrapper.Text = $"Mesh {Index++}";
Shapes.Add(meshWrapper);
}
}