-
Notifications
You must be signed in to change notification settings - Fork 70
Use the Renderer in the plugin and interface #1374
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
Conversation
retest this please |
ksp_plugin/renderer.hpp
Outdated
not_null<std::unique_ptr<NavigationFrame>> plotting_frame); | ||
|
||
// Returns the current plotting frame. This may not be the last set by | ||
// |SetPlottingFrame| if it was overridden by a target vessel. |
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.
if it is overridden by a target vessel.
ksp_plugin/renderer.hpp
Outdated
not_null<Celestial const*> celestial, | ||
not_null<Ephemeris<Barycentric> const*> const ephemeris); | ||
|
||
// Reverts to the previously active plotting frame. The second version only |
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.
to the frame last set by |SetPlottingFrame|.
auto parameters = target_->vessel->prediction_adaptive_step_parameters(); | ||
parameters.set_max_steps(begin.trajectory()->Size()); | ||
target_->vessel->set_prediction_adaptive_step_parameters(parameters); | ||
target_->vessel->UpdatePrediction(current_time_ + prediction_length_); |
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.
This UpdatePrediction
disappeared; it was an ugly hack, but removing it is probably a bug.
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.
Good catch, done.
No description provided.