Spaces:
Running
Running
Update js_scripts/index.js
Browse files- js_scripts/index.js +16 -1
js_scripts/index.js
CHANGED
@@ -765,4 +765,19 @@ const currentScriptTag = document.currentScript;
|
|
765 |
setupWheelHandlers();
|
766 |
|
767 |
// Hide progress dialog when everything is set up
|
768 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
765 |
setupWheelHandlers();
|
766 |
|
767 |
// Hide progress dialog when everything is set up
|
768 |
+
progressDialog.style.display = 'none';
|
769 |
+
|
770 |
+
// Mark viewer as initialized
|
771 |
+
viewerInitialized = true;
|
772 |
+
|
773 |
+
console.log("PLY viewer initialization complete");
|
774 |
+
});
|
775 |
+
|
776 |
+
} catch (error) {
|
777 |
+
console.error("Error initializing PlayCanvas viewer:", error);
|
778 |
+
progressDialog.innerHTML = `<p style="color: red">Error loading viewer: ${error.message}</p>`;
|
779 |
+
viewerInitialized = false;
|
780 |
+
app = null;
|
781 |
+
}
|
782 |
+
}
|
783 |
+
})();
|