Skip to content
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

Merged
merged 3 commits into from
Aug 15, 2016

Conversation

lilleyse
Copy link
Contributor

@lilleyse lilleyse commented Aug 12, 2016

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.

@mramato
Copy link
Contributor

mramato commented Aug 12, 2016

Merge in 3d-tiles please.

@lilleyse
Copy link
Contributor Author

Merge in 3d-tiles please.

Ready

@pjcozzi
Copy link
Contributor

pjcozzi commented Aug 13, 2016

This is OK with me. @mramato did you plan to look at this?

}
return false;
Copy link
Contributor

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.

Copy link
Contributor

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.

@mramato
Copy link
Contributor

mramato commented Aug 15, 2016

Just that one comment. Thanks @lilleyse

@lilleyse
Copy link
Contributor Author

Updated.

@mramato
Copy link
Contributor

mramato commented Aug 15, 2016

Thanks.

@mramato mramato merged commit 2c07576 into 3d-tiles Aug 15, 2016
@mramato mramato deleted the promise-creation branch August 15, 2016 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants