Do not retroactively project images when time passes with disable projections

This commit is contained in:
Alexander Bock
2016-06-30 00:20:39 +02:00
parent 6f05ed3b98
commit 7267aacea2
2 changed files with 16 additions and 10 deletions

View File

@@ -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

View File

@@ -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()
);
}
}
}