-
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
Fix entity visibility for non-dynamic show #7156
Conversation
Thanks for the pull request @hpinkos!
Reviewers, don't forget to make sure that:
I am a bot who helps you make Cesium awesome! Contributions to my configuration are welcome. 🌍 🌎 🌏 |
This all sounds vaguely familiar to me, but do we know when this regression happened? This is just putting back old behavior, right? |
|
This is a better fix than the old behavior because it specifically addresses changes to show for static geometry. The code from that commit you mentioned was removed because it was causing problems for dynamic geometry #7048 |
Sounds good. Can we add unit tests? |
Thanks for pushing back on this @mramato! I assumed we didn't have many unit tests for things like this because they were difficult or impossible to write, but it was actually pretty straight forwards. This is ready now |
You have some failing tests |
@mramato this should be ready now |
Travis builds are down while GitHub is still recovering from earlier failure. So I'll have to test this locally but will merge if there aren't any problems. |
Fixes #7132
Updating the
show
property has a special case if show is constant. Instead of checking the value of the attribute every frame, we listen for changes to theisShowing
property and update the attribute value without creating a new primitive. The the old polygon was showing when the new polygon was added because we reused the geometry instance that still had the old attribute value when the new primitive was created with both geometry instances.