Only update compression for uncompressed external types
This commit is contained in:
parent
826a96b265
commit
d302c38563
@ -815,12 +815,15 @@ namespace FirstPlugin
|
|||||||
{
|
{
|
||||||
//Ensure it uses mc compressor for save
|
//Ensure it uses mc compressor for save
|
||||||
this.IFileInfo.FileIsCompressed = true;
|
this.IFileInfo.FileIsCompressed = true;
|
||||||
|
if (this.IFileInfo.FileCompression == null)
|
||||||
|
{
|
||||||
// this.IFileInfo.FileCompression = new MeshCodecFormat();
|
// this.IFileInfo.FileCompression = new MeshCodecFormat();
|
||||||
if (!this.FileName.EndsWith(".mc"))
|
if (!this.FileName.EndsWith(".mc"))
|
||||||
this.FileName += ".mc";
|
this.FileName += ".mc";
|
||||||
if (!this.FilePath.EndsWith(".mc"))
|
if (!this.FilePath.EndsWith(".mc"))
|
||||||
this.FilePath += ".mc";
|
this.FilePath += ".mc";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (externalFlags.HasFlag(MeshCodec.ExternalFlags.HasExternalString))
|
if (externalFlags.HasFlag(MeshCodec.ExternalFlags.HasExternalString))
|
||||||
MeshCodec.Prepare();
|
MeshCodec.Prepare();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user