-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cesium3DTile check for ready promise after request is made #4201
Conversation
Merge in |
Ready |
This is OK with me. @mramato did you plan to look at this? |
} | ||
return false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we prefer early return, flip the above if(defined(promise))
check and return false immediately to make the code cleaner.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment in the other 3 places in this PR where this is happening.
Just that one comment. Thanks @lilleyse |
Updated. |
Thanks. |
Fixes #3453
A tile now starts waiting for its readyPromise only when it is requested rather than at construction time. Empty tiles are a special case where the readyPromise is checked right away because it is resolved immediately.