mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-03-05 11:58:42 -06:00
Do not retroactively project images when time passes with disable projections
This commit is contained in:
@@ -207,13 +207,15 @@ void RenderableModelProjection::update(const UpdateData& data) {
|
||||
|
||||
_time = data.time;
|
||||
|
||||
if (openspace::ImageSequencer::ref().isReady() && _projectionComponent.doesPerformProjection()) {
|
||||
if (openspace::ImageSequencer::ref().isReady()) {
|
||||
openspace::ImageSequencer::ref().updateSequencer(_time);
|
||||
_capture = openspace::ImageSequencer::ref().getImagePaths(
|
||||
_imageTimes,
|
||||
_projectionComponent.projecteeId(),
|
||||
_projectionComponent.instrumentId()
|
||||
);
|
||||
if (_projectionComponent.doesPerformProjection()) {
|
||||
_capture = openspace::ImageSequencer::ref().getImagePaths(
|
||||
_imageTimes,
|
||||
_projectionComponent.projecteeId(),
|
||||
_projectionComponent.instrumentId()
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
// set spice-orientation in accordance to timestamp
|
||||
|
||||
@@ -370,11 +370,15 @@ void RenderablePlanetProjection::update(const UpdateData& data) {
|
||||
_time = Time::ref().currentTime();
|
||||
_capture = false;
|
||||
|
||||
if (openspace::ImageSequencer::ref().isReady() && _projectionComponent.doesPerformProjection()){
|
||||
if (openspace::ImageSequencer::ref().isReady()){
|
||||
openspace::ImageSequencer::ref().updateSequencer(_time);
|
||||
_capture = openspace::ImageSequencer::ref().getImagePaths(
|
||||
_imageTimes, _projectionComponent.projecteeId(), _projectionComponent.instrumentId()
|
||||
);
|
||||
if (_projectionComponent.doesPerformProjection()) {
|
||||
_capture = openspace::ImageSequencer::ref().getImagePaths(
|
||||
_imageTimes,
|
||||
_projectionComponent.projecteeId(),
|
||||
_projectionComponent.instrumentId()
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user