Fixed casing issues with MetaNames which probably was causing XML issues. Moved shader param names to new ShaderParamNames enum to preserve casing. Moved meta type names to new MetaTypeName enum to avoid polluting MetaNames.

This commit is contained in:
dexy
2019-10-31 17:11:12 +11:00
Unverified
parent 262e6666c9
commit 4834b8c520
25 changed files with 3728 additions and 2272 deletions
+3 -3
View File
@@ -156,7 +156,7 @@ namespace CodeWalker.Forms
return;
}
MetaName[] texsamplers = RenderableGeometry.GetTextureSamplerList();
ShaderParamNames[] texsamplers = RenderableGeometry.GetTextureSamplerList();
foreach (var texsampler in texsamplers)
{
TextureSamplerComboBox.Items.Add(texsampler);
@@ -1676,9 +1676,9 @@ namespace CodeWalker.Forms
private void TextureSamplerComboBox_SelectedIndexChanged(object sender, EventArgs e)
{
if (TextureSamplerComboBox.SelectedItem is MetaName)
if (TextureSamplerComboBox.SelectedItem is ShaderParamNames)
{
Renderer.shaders.RenderTextureSampler = (MetaName)TextureSamplerComboBox.SelectedItem;
Renderer.shaders.RenderTextureSampler = (ShaderParamNames)TextureSamplerComboBox.SelectedItem;
}
}