Commit f2bf92b7 authored by Alfakhori's avatar Alfakhori
Browse files

undo end

parent 04a91fd3
Pipeline #12469 passed with stage
in 24 seconds
......@@ -1210,44 +1210,24 @@ async function activateXR(sceneData = null) {
// AR session ended
// ========================================================
currentSession.addEventListener("end", () => {
// ========================================================
// AR session ended
// ========================================================
currentSession.addEventListener("end", () => {
currentSession = null;
currentSession = null;
// Hide dynamic menu
// Hide dynamic menu
const dynamicMenu = document.getElementById("dynamic-menu");
document.getElementById("dynamic-menu").style.display = "none";
if (dynamicMenu) {
dynamicMenu.style.display = "none";
}
// Hide all application menus
// Hide AR-specific menus
menus.forEach((id) => {
const element = document.getElementById(id);
menus.forEach((id) => {
const element = menuElements[id];
if (element) {
element.style.display = "none";
}
if (element) {
element.style.display = "none";
}
});
});
// ========================================================
// Return to the main page
// Show Start AR / Load Scene buttons again
// ========================================================
const menuBar = document.getElementById("menu-bar");
if (menuBar) {
menuBar.style.display = "flex";
}
// Clear selected model
selectedPlacedModel = null;
});
// ========================================================
// Select objects in AR
// ========================================================
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment