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

fix clipping planes bug with 3d tilesets #6486

Merged
merged 2 commits into from
Apr 24, 2018

Conversation

likangning93
Copy link
Contributor

Fixes #6484

@cesium-concierge
Copy link

Signed CLA is on file.

@likangning93, thanks for the pull request! Maintainers, we have a signed CLA from @likangning93, so you can review this at any time.


I am a bot who helps you make Cesium awesome! Contributions to my configuration are welcome.

🌍 🌎 🌏

@@ -733,6 +733,8 @@ define([
this.replacementNode = undefined;

this.lastStyleTime = 0;
this.clippingPlanesDirty = this._clippingPlanesState === 0;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't chain values like this, but since you're already setting this._clippingPlanesState on the next line, I assume this is a copy/paste error.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't chaining values. It's setting clippingPlanesDirty to a boolean if _clippingPlanesState is equal to 0

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh, I missed that. Still this line is confusing, perhaps put the right hand side in parenthesis to make it more obvious.

@lilleyse
Copy link
Contributor

Thanks @likangning93, this fixes it.

@lilleyse lilleyse merged commit e2ffb22 into CesiumGS:master Apr 24, 2018
@lilleyse lilleyse deleted the fixClippingPlanes branch April 24, 2018 23:52
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.

5 participants