3
0
Fork 0
mirror of https://github.com/lubosz/overte.git synced 2025-04-26 12:55:27 +02:00
This commit is contained in:
milad 2019-11-15 12:48:32 -08:00
parent 481e239a37
commit 87adae6c6f

View file

@ -578,14 +578,10 @@ var toolBar = (function () {
var isLoadedCheckCount = 0;
var entityIsLoadedCheck = function() {
isLoadedCheckCount++;
if (isLoadedCheckCount === MAX_LOADED_CHECKS) {
if (isLoadedCheckCount === MAX_LOADED_CHECKS || Entity.isLoaded(entityID)) {
return;
}
if (EntityisLoaded(entityID)) {
return;
} else {
Script.setTimeout(entityIsLoadedCheck, LOADED_CHECK_INTERVAL);
}
Script.setTimeout(entityIsLoadedCheck, LOADED_CHECK_INTERVAL);
}
Script.setTimeout(entityIsLoadedCheck, LOADED_CHECK_INTERVAL);