mirror of
https://github.com/overte-org/overte.git
synced 2025-04-19 03:56:32 +02:00
Clean sitting targets when changing domain
This commit is contained in:
parent
6c21c44beb
commit
f2dbaaf65c
1 changed files with 9 additions and 0 deletions
|
@ -285,7 +285,16 @@ function update(deltaTime){
|
|||
showIndicators(true);
|
||||
}
|
||||
}
|
||||
|
||||
if (location.hostname != oldHost) {
|
||||
print("Changed domain");
|
||||
for (model in models) {
|
||||
removeIndicators(models[model]);
|
||||
}
|
||||
oldHost = location.hostname;
|
||||
}
|
||||
}
|
||||
var oldHost = location.hostname;
|
||||
|
||||
function addIndicators(modelID) {
|
||||
if (modelID.properties.sittingPoints.length > 0) {
|
||||
|
|
Loading…
Reference in a new issue