Prevent a crash when running in Debug mode, Make the RenderableFluxNodes check all files first before failing

This commit is contained in:
Alexander Bock
2022-04-17 16:57:48 +02:00
parent 5751fe26d3
commit 989f7143fa
2 changed files with 8 additions and 13 deletions

View File

@@ -208,6 +208,8 @@ void RenderablePlaneTimeVaryingImage::update(const UpdateData& data) {
if (isInInterval) {
const size_t nextIdx = _activeTriggerTimeIndex + 1;
if (
// true => we were not in an interval the previous frame but now we are
_activeTriggerTimeIndex == -1 ||
// true => We stepped back to a time represented by another state
currentTime < _startTimes[_activeTriggerTimeIndex] ||
// true => We stepped forward to a time represented by another state