diff --git a/Switch_FileFormatsMain/FileFormats/BFRES.cs b/Switch_FileFormatsMain/FileFormats/BFRES.cs index 7a47816f..16170613 100644 --- a/Switch_FileFormatsMain/FileFormats/BFRES.cs +++ b/Switch_FileFormatsMain/FileFormats/BFRES.cs @@ -236,7 +236,7 @@ namespace FirstPlugin foreach (var tex in shape.GetMaterial().textures) { if (!shd.samplers.ContainsValue(tex.SamplerName)) - shd.attributes.Add(tex.SamplerName, tex.SamplerName); + shd.samplers.Add(tex.SamplerName, tex.SamplerName); } }