Merge pull request #981 from manongjohn/fix_sound_rendered_early
Fix rendered sound starting too soon
This commit is contained in:
commit
e6b2fe450e
1 changed files with 6 additions and 0 deletions
|
@ -81,6 +81,12 @@ void getRange(ToonzScene *scene, bool isPreview, int &from, int &to) {
|
|||
int r0, r1;
|
||||
xs->getCellRange(k, r0, r1);
|
||||
|
||||
// Sound columns should be based on frame 0 for timing purposes
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue