Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Alfakhori
Gengenbach
Commits
04a91fd3
Commit
04a91fd3
authored
Sep 29, 2026
by
Alfakhori
Browse files
fix end function
parent
d2df398a
Pipeline
#12468
passed with stage
in 25 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
public/ar_main.js
View file @
04a91fd3
...
@@ -1210,23 +1210,43 @@ async function activateXR(sceneData = null) {
...
@@ -1210,23 +1210,43 @@ async function activateXR(sceneData = null) {
// AR session ended
// AR session ended
// ========================================================
// ========================================================
currentSession
.
addEventListener
(
"
end
"
,
()
=>
{
currentSession
.
addEventListener
(
"
end
"
,
()
=>
{
// ========================================================
// AR session ended
// ========================================================
currentSession
=
null
;
currentSession
=
null
;
// Hide dynamic menu
// Hide dynamic menu
const
dynamicMenu
=
document
.
getElementById
(
"
dynamic-menu
"
);
document
.
getElementById
(
"
dynamic
-m
enu
"
).
style
.
display
=
"
none
"
;
if
(
dynamic
M
enu
)
{
dynamicMenu
.
style
.
display
=
"
none
"
;
// Hide all application menus
}
// Hide AR-specific menus
menus
.
forEach
((
id
)
=>
{
menus
.
forEach
((
id
)
=>
{
const
element
=
menu
Element
s
[
id
]
;
const
element
=
document
.
get
Element
ById
(
id
)
;
if
(
element
)
{
if
(
element
)
{
element
.
style
.
display
=
"
none
"
;
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
// Select objects in AR
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment