mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 05:44:12 +02:00
close rather than attempt to repair the tablet after a domain change
This commit is contained in:
parent
827ae7ad4d
commit
ced1b61b70
1 changed files with 3 additions and 2 deletions
|
@ -56,9 +56,10 @@
|
|||
|
||||
if (tabletShown && UIWebTablet && Overlays.getOverlayType(UIWebTablet.webOverlayID) != "web3d") {
|
||||
// when we switch domains, the tablet entity gets destroyed and recreated. this causes
|
||||
// the overlay to be deleted, but not recreated. repair this situation here:
|
||||
// the overlay to be deleted, but not recreated. If the overlay is deleted for this or any
|
||||
// other reason, close the tablet.
|
||||
hideTabletUI();
|
||||
showTabletUI();
|
||||
HMD.closeTablet();
|
||||
} else if (HMD.showTablet && !tabletShown) {
|
||||
showTabletUI();
|
||||
} else if (!HMD.showTablet && tabletShown) {
|
||||
|
|
Loading…
Reference in a new issue