Fix importing pattern constants to the texutre list

This commit is contained in:
KillzXGaming 2019-07-14 11:55:01 -04:00
parent 033888f6e2
commit 2195fc4d03
2 changed files with 6 additions and 0 deletions

Binary file not shown.

View file

@ -223,6 +223,12 @@ namespace FirstPlugin
{
foreach (var texturePatternCfg in matCfg.TexturePatternInfos)
{
if (texturePatternCfg.ConstantValue == null)
{
if (!Textures.Contains(texturePatternCfg.ConstantValue.Texture))
Textures.Add(texturePatternCfg.ConstantValue.Texture);
}
if (texturePatternCfg.CurveData == null)
continue;