Skip to content

OpenToonz - An open-source full-featured 2D animation creation software

C

Update movierenderer.cpp

JPUser1c801abdb464b
diff --git a/toonz/sources/toonzlib/movierenderer.cpp b/toonz/sources/toonzlib/movierenderer.cpp
index 538c00317..1ea8651ce 100644
--- a/toonz/sources/toonzlib/movierenderer.cpp
+++ b/toonz/sources/toonzlib/movierenderer.cpp
@@ -81,6 +81,10 @@ void getRange(ToonzScene *scene, bool isPreview, int &from, int &to) {
int r0, r1;
xs->getCellRange(k, r0, r1);
+ TXshColumn *col = xs->getColumn(k);
+ TXshSoundColumn *sndCol = col ? col->getSoundColumn() : 0;
+
+ if (sndCol) r0 = 0;
from = std::min(from, r0), to = std::max(to, r1);
}
}