- [Core] Fix issue with exporting/previewing new shader foramt [GI]

This commit is contained in:
Razmoth
2023-09-19 15:41:22 +04:00
parent f8e0cc4de7
commit 4fcc549f99
5 changed files with 28 additions and 17 deletions

View File

@@ -1045,7 +1045,7 @@ namespace AssetStudioGUI
return;
}
var str = ShaderConverter.Convert(m_Shader, Studio.Game);
var str = m_Shader.Convert();
PreviewText(str == null ? "Serialized Shader can't be read" : str.Replace("\n", "\r\n"));
}