mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2026-05-15 02:38:28 +08:00
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:
+3
-3
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user