Fix: Reset Landscape mode in HMD

Fix: Reset Landscape mode in HMD

In HMD, clicking on the button "Open this Domain's Asset server" is reverting the tablet to "portrait" mode
This fix forces the mode to return to Landscape if from the Asset server we click on the "List" tab.
This commit is contained in:
Alezia Kurdis 2020-09-27 15:23:17 -04:00 committed by GitHub
parent 6ecbbd258b
commit 3f98cd4934
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -164,7 +164,10 @@ EntityListTool = function(shouldUseEditTabletApp) {
}
that.sendUpdate = function() {
var tablet = Tablet.getTablet("com.highfidelity.interface.tablet.system");
if (HMD.active){
tablet.setLandscape(true);
}
emitJSONScriptEvent({
"type": "confirmHMDstate",
"isHmd": HMD.active