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

Fixed a crash when using Entity path visualization with references #4917

Merged
merged 1 commit into from
Jan 25, 2017

Conversation

mramato
Copy link
Contributor

@mramato mramato commented Jan 25, 2017

Fixes #4915

There were several bugs here:

  1. PathVisualizer was unwrapping a ReferenceProperty, finding a CompositePositionProperty inside, and then using the reference as if it was a composite instead of using the inner property.
  2. Same was 1, but for TimeIntervalCollectionPositionProperty
  3. We were unwrapping ScaledPositionProperty and using the inner property directly, but this prevented the value from actually being scaled properly. Now we use the ScaledPositionProperty which means it falls back to a generic sampling path but that's the best solution. (Not to mention that ScaledPositionProperty is private and will eventually go away).

…perties.

Fixes #4915

There were several bugs here:

1. `PathVisualizer` was unwrapping a `ReferenceProperty`, finding a
`CompositePositionProperty` inside, and then using the reference as if
it was a composite instead of using the inner property.
2. Same was 1, but for `TimeIntervalCollectionPositionProperty`
3. We were unwrapping `ScaledPositionProperty` and using the inner property
directly, but this prevented the value from actually being scaled properly.
Now we use the `ScaledPositionProperty` which means it falls back to a
generic sampling path but that's the best solution. (Not to mention that
ScaledPositionProperty is privat and will eventually go away).
@emackey emackey self-requested a review January 25, 2017 14:42
Copy link
Contributor

@emackey emackey left a comment

Choose a reason for hiding this comment

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

This looks great, thanks for getting this done so quickly! Unit tests pass, and I ran some additional test cases I have (that revealed a new problem with our Ellipsoid fix, but no problems with this fix).

@emackey emackey merged commit d42ca06 into master Jan 25, 2017
@emackey emackey deleted the composite-path branch January 25, 2017 16:30
@mramato
Copy link
Contributor Author

mramato commented Jan 25, 2017

that revealed a new problem with our Ellipsoid fix

Care to elaborate on this?

@emackey
Copy link
Contributor

emackey commented Jan 25, 2017

Yes. There will be a new issue forthcoming, when I can get a public test case. But basically, when the ellipsoid is present on an inclined GEO spacecraft orbit, the selectionIndicator appears on a point that seems to have about half of the spacecraft's latitude. Strange.

EDIT: This is now explained in issue #4929.

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.

2 participants