1
0
mirror of synced 2025-02-20 12:41:10 +01:00

A few more material mapping fixes for bmd

This commit is contained in:
KillzXGaming 2019-07-19 19:17:32 -04:00
parent 419a76a508
commit 2455e720bf
5 changed files with 8 additions and 4 deletions

View File

@ -266,7 +266,7 @@ namespace FirstPlugin
if (node.Index < Meshes.Count)
{
int matIndex = node.Parent.Index;
((BMDShapeWrapper)Meshes[node.Index]).SetMaterial((STGenericMaterial)MaterialFolder.Nodes[materials.m_RemapIndices[matIndex]]);
((BMDShapeWrapper)Meshes[node.Index]).SetMaterial((STGenericMaterial)MaterialFolder.Nodes[matIndex]);
}
}
}

View File

@ -37,7 +37,7 @@ namespace FirstPlugin
public override void OnClick(TreeView treeView)
{
STPropertyGrid editor = (STPropertyGrid)LibraryGUI.GetActiveContent(typeof(STPropertyGrid));
/* STPropertyGrid editor = (STPropertyGrid)LibraryGUI.GetActiveContent(typeof(STPropertyGrid));
if (editor == null)
{
editor = new STPropertyGrid();
@ -45,7 +45,7 @@ namespace FirstPlugin
}
editor.Text = Text;
editor.Dock = DockStyle.Fill;
editor.LoadProperty(BMDShape, null);
editor.LoadProperty(BMDShape, null);(*/
}
}
}

View File

@ -143,7 +143,11 @@ namespace FirstPlugin.Forms
form.editorBase.Dock = DockStyle.Fill;
form.editorBase.LoadProperties(image.GenericProperties);
form.editorBase.LoadImage(image);
form.ShowDialog();
if (form.ShowDialog() == DialogResult.OK)
{
UpdateImagePanel(ImageIndex);
}
}
}

Binary file not shown.

Binary file not shown.