diff options
Diffstat (limited to 'UVtools.Core/FileFormats/CXDLPFile.cs')
-rw-r--r-- | UVtools.Core/FileFormats/CXDLPFile.cs | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/UVtools.Core/FileFormats/CXDLPFile.cs b/UVtools.Core/FileFormats/CXDLPFile.cs index b1be1e4..d766379 100644 --- a/UVtools.Core/FileFormats/CXDLPFile.cs +++ b/UVtools.Core/FileFormats/CXDLPFile.cs @@ -419,12 +419,23 @@ namespace UVtools.Core.FileFormats public override uint[] AvailableVersions { get; } = { 2, 3 }; + public override uint DefaultVersion => 2; + public override uint Version { get => HeaderSettings.Version; set { - base.Version = value; + if (base.Version == 3) + { + base.Version = 2; + SlicerInfoV3Settings.MyControl = 1; + } + else + { + base.Version = value; + } + HeaderSettings.Version = (ushort)base.Version; } } |