A few more material mapping fixes for bmd
This commit is contained in:
parent
419a76a508
commit
2455e720bf
@ -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]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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);(*/
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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.
Loading…
x
Reference in New Issue
Block a user