Merge pull request #9836 from druiz17/2-tablets-fix

Fixed having more than one tablet when reloading scripts
This commit is contained in:
druiz17 2017-03-09 09:13:14 -08:00 committed by GitHub
commit 007ed9fe81

View file

@ -131,7 +131,9 @@
}
Script.scriptEnding.connect(function () {
Entities.deleteEntity(HMD.tabletID);
var tabletID = HMD.tabletID;
Entities.deleteEntity(tabletID);
Overlays.deleteOverlay(tabletID)
HMD.tabletID = null;
HMD.homeButtonID = null;
HMD.tabletScreenID = null;