Image has a TimeRange instead of two doubles

This commit is contained in:
Erik Broberg
2016-08-18 18:23:52 -04:00
parent ae25a171a6
commit 8f8114fabf
9 changed files with 49 additions and 43 deletions
@@ -166,14 +166,14 @@ void RenderablePlaneProjection::update(const UpdateData& data) {
_stateMatrix = SpiceManager::ref().positionTransformMatrix(_target.frame, GalacticFrame, time);
double timePast = abs(img.startTime - _previousTime);
double timePast = abs(img.timeRange.start - _previousTime);
std::string tex = _texturePath;
if (_moving || _planeIsDirty)
updatePlane(img, time);
else if (timePast > DBL_EPSILON) {
_previousTime = time = img.startTime;
_previousTime = time = img.timeRange.start;
updatePlane(img, time);
}