Clean sitting targets when changing domain

This commit is contained in:
Atlante45 2014-07-29 13:13:16 -07:00
parent 6c21c44beb
commit f2dbaaf65c

View file

@ -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) {