1
0
mirror of synced 2024-11-14 11:07:39 +01:00

Fix material mapping for BCH/BCMDL DAE exporting

This commit is contained in:
KillzXGaming 2020-03-21 20:40:52 -04:00
parent 032db2a0d0
commit 3f90854914
2 changed files with 3 additions and 1 deletions

View File

@ -286,7 +286,7 @@ namespace FirstPlugin.CtrLibrary
public ToolStripItem[] GetContextMenuItems() public ToolStripItem[] GetContextMenuItems()
{ {
List<ToolStripItem> Items = new List<ToolStripItem>(); List<ToolStripItem> Items = new List<ToolStripItem>();
Items.Add(new ToolStripMenuItem("Export Model", null, ExportAction, Keys.Control | Keys.E)); // Items.Add(new ToolStripMenuItem("Export Model", null, ExportAction, Keys.Control | Keys.E));
return Items.ToArray(); return Items.ToArray();
} }

View File

@ -45,6 +45,8 @@ namespace FirstPlugin.CtrLibrary
ImageKey = "mesh"; ImageKey = "mesh";
SelectedImageKey = "mesh"; SelectedImageKey = "mesh";
MaterialIndex = Mesh.MaterialIndex;
foreach (var subMesh in mesh.SubMeshes) foreach (var subMesh in mesh.SubMeshes)
{ {
STGenericPolygonGroup group = new STGenericPolygonGroup(); STGenericPolygonGroup group = new STGenericPolygonGroup();