Fix Preview render ignoring last Stop Hold

This commit is contained in:
manongjohn 2023-05-29 15:22:47 -04:00
parent 085cab3d52
commit 0a920fd9c5

View file

@ -558,6 +558,9 @@ void PreviewFxInstance::updateFrameRange() {
properties->getRange(m_start, m_end, m_step); properties->getRange(m_start, m_end, m_step);
if (m_end < 0) m_end = frameCount - 1; if (m_end < 0) m_end = frameCount - 1;
if (m_end >= frameCount && Preferences::instance()->isImplicitHoldEnabled())
frameCount = m_end;
// Intersect with the fx active frame range // Intersect with the fx active frame range
TRasterFxP rasterFx(m_fx); TRasterFxP rasterFx(m_fx);
TFxTimeRegion timeRegion(rasterFx->getTimeRegion()); TFxTimeRegion timeRegion(rasterFx->getTimeRegion());