Replace magic numbers wiht const values

This commit is contained in:
Ryan Huffman 2014-10-06 08:37:07 -07:00
parent d7f383f74a
commit e70c57cb95

View file

@ -1236,7 +1236,7 @@ var toolBar = (function () {
checkCount++;
if (naturalDimensions.x == 0 && naturalDimensions.y == 0 && naturalDimensions.z == 0) {
if (checkCount < RESIZE_TIMEOUT / RESIZE_INTERVAL) {
if (checkCount < RESIZE_MAX_CHECKS) {
Script.setTimeout(resize, RESIZE_INTERVAL);
} else {
print("Resize failed: timed out waiting for model (" + url + ") to load");
@ -1247,7 +1247,7 @@ var toolBar = (function () {
}
}
Script.setTimeout(resize, 50);
Script.setTimeout(resize, RESIZE_INTERVAL);
} else {
print("Can't add model: Model would be out of bounds.");