Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sn4k3/UVtools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'UVtools.Core/FileFormats/CXDLPFile.cs')
-rw-r--r--UVtools.Core/FileFormats/CXDLPFile.cs10
1 files changed, 2 insertions, 8 deletions
diff --git a/UVtools.Core/FileFormats/CXDLPFile.cs b/UVtools.Core/FileFormats/CXDLPFile.cs
index d303793..2ac979a 100644
--- a/UVtools.Core/FileFormats/CXDLPFile.cs
+++ b/UVtools.Core/FileFormats/CXDLPFile.cs
@@ -659,16 +659,10 @@ public class CXDLPFile : FileFormat
{
using var outputFile = new FileStream(TemporaryOutputFileFullPath, FileMode.Create, FileAccess.ReadWrite);
- if (string.IsNullOrWhiteSpace(MachineName))
- {
- throw new InvalidDataException("Unable to detect the printer model from resolution, check if resolution is well defined on slicer for your printer model.");
- }
-
-
- if (!MachineName.StartsWith("CL-") && !MachineName.StartsWith("CT"))
+ if (string.IsNullOrWhiteSpace(MachineName) || (!MachineName.StartsWith("CL-") && !MachineName.StartsWith("CT")))
{
bool found = false;
- foreach (var machine in Printer.Machine.Machines
+ foreach (var machine in Machine.Machines
.Where(machine => machine.Brand == PrinterBrand.Creality
&& (machine.Model.StartsWith("CL-") || machine.Model.StartsWith("CT"))
))