PrintVault: raise GCode segment limit to 300k (max 500k)
Deploy HouseHub / deploy (push) Successful in 2s

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
perco
2026-05-15 11:41:19 +02:00
co-authored by Claude Sonnet 4.6
parent 811d186b46
commit 237de1e529
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -241,7 +241,7 @@ if ($action === 'models') {
// ── GCODE PATHS ────────────────────────────────────────────────────────────────
if ($action === 'gcode_paths') {
$id = (int)($_GET['id'] ?? 0);
$max = min((int)($_GET['max'] ?? 30000), 80000);
$max = min((int)($_GET['max'] ?? 300000), 500000);
$s = $pdo->prepare("SELECT filename, file_type FROM pf_pv_models WHERE id=?"); $s->execute([$id]);
$row = $s->fetch(); if (!$row) pvErr('Introuvable', 404);
$ext = strtolower($row['file_type']);
+1 -1
View File
@@ -307,7 +307,7 @@ function zToColor(z, minZ, maxZ) {
document.getElementById('viewer-loading-text').textContent = 'Chargement des trajectoires…';
fetch('/modules/printvault/api.php?action=gcode_paths&id=<?= $id ?>&max=30000', {
fetch('/modules/printvault/api.php?action=gcode_paths&id=<?= $id ?>&max=300000', {
credentials: 'same-origin',
headers: {'X-Requested-With':'XMLHttpRequest','Accept':'application/json'}
})