fix(back-end): fix process and new feature
Some checks failed
Build, Test and Deploy / test-backend (push) Failing after 33s
Build, Test and Deploy / build-and-push (push) Has been skipped
Build, Test and Deploy / deploy (push) Has been skipped

This commit is contained in:
2026-02-16 16:13:42 +01:00
parent 875c6ffd2d
commit b26b582baf

View File

@@ -55,6 +55,12 @@ public class SlicerService {
if (machineProfile.has("bed_custom_texture")) machineProfile.put("bed_custom_texture", "");
machineProfile.remove("thumbnail");
// OrcaSlicer si aspetta almeno un valore per bed_exclude_area.
// Alcuni profili BBL la sovrascrivono con [] e causano "Unable to create exclude triangles".
if (!machineProfile.has("bed_exclude_area") || machineProfile.get("bed_exclude_area").isEmpty()) {
machineProfile.putArray("bed_exclude_area").add("0x0");
}
Path baseTempPath = Paths.get("/app/temp");
if (!Files.exists(baseTempPath)) Files.createDirectories(baseTempPath);
Path tempDir = Files.createTempDirectory(baseTempPath, "job_");