mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 20:56:52 +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);
|
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) {
|
function addIndicators(modelID) {
|
||||||
if (modelID.properties.sittingPoints.length > 0) {
|
if (modelID.properties.sittingPoints.length > 0) {
|
||||||
|
|
Loading…
Reference in a new issue