mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-06-20 00:29:06 +02:00
cr
This commit is contained in:
parent
481e239a37
commit
87adae6c6f
1 changed files with 2 additions and 6 deletions
|
@ -578,14 +578,10 @@ var toolBar = (function () {
|
||||||
var isLoadedCheckCount = 0;
|
var isLoadedCheckCount = 0;
|
||||||
var entityIsLoadedCheck = function() {
|
var entityIsLoadedCheck = function() {
|
||||||
isLoadedCheckCount++;
|
isLoadedCheckCount++;
|
||||||
if (isLoadedCheckCount === MAX_LOADED_CHECKS) {
|
if (isLoadedCheckCount === MAX_LOADED_CHECKS || Entity.isLoaded(entityID)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (EntityisLoaded(entityID)) {
|
Script.setTimeout(entityIsLoadedCheck, LOADED_CHECK_INTERVAL);
|
||||||
return;
|
|
||||||
} else {
|
|
||||||
Script.setTimeout(entityIsLoadedCheck, LOADED_CHECK_INTERVAL);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
Script.setTimeout(entityIsLoadedCheck, LOADED_CHECK_INTERVAL);
|
Script.setTimeout(entityIsLoadedCheck, LOADED_CHECK_INTERVAL);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue