mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-05 02:00:06 +02:00
Fix failure case when resizing a new model
This commit is contained in:
parent
b2229a9a9f
commit
d7f383f74a
1 changed files with 2 additions and 0 deletions
|
@ -1233,6 +1233,8 @@ var toolBar = (function () {
|
|||
var entityProperties = Entities.getEntityProperties(entityId);
|
||||
var naturalDimensions = entityProperties.naturalDimensions;
|
||||
|
||||
checkCount++;
|
||||
|
||||
if (naturalDimensions.x == 0 && naturalDimensions.y == 0 && naturalDimensions.z == 0) {
|
||||
if (checkCount < RESIZE_TIMEOUT / RESIZE_INTERVAL) {
|
||||
Script.setTimeout(resize, RESIZE_INTERVAL);
|
||||
|
|
Loading…
Reference in a new issue