diff --git a/modules/printvault/api.php b/modules/printvault/api.php index e347cff..36f481d 100644 --- a/modules/printvault/api.php +++ b/modules/printvault/api.php @@ -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']); diff --git a/printvault-viewer.php b/printvault-viewer.php index fd45602..11221e9 100644 --- a/printvault-viewer.php +++ b/printvault-viewer.php @@ -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=&max=30000', { +fetch('/modules/printvault/api.php?action=gcode_paths&id=&max=300000', { credentials: 'same-origin', headers: {'X-Requested-With':'XMLHttpRequest','Accept':'application/json'} })