Force mesh codec save when .mc extension is used for bfres

This commit is contained in:
KillzXGaming 2023-06-14 20:05:19 -04:00
parent e57bdfb704
commit 2e6c30bf1e

View file

@ -950,6 +950,10 @@ namespace FirstPlugin
public void Save(Stream stream)
{
//Force mesh codec compression on save
if (this.FileName.EndsWith(".mc"))
this.IFileInfo.FileCompression = new MeshCodecFormat();
var Models = GetModels();
if (Models != null && !IsParticlePrimitive)
{