Fix missing scene overlay for Multiple Rendering options

This commit is contained in:
manongjohn 2023-10-29 21:45:41 -04:00
parent 56d47b30bd
commit d07810b63e

View file

@ -1586,5 +1586,15 @@ DVAPI TFxP buildSceneFx(ToonzScene *scene, double frame, TXsheet *xsh,
if (!aff.isIdentity()) fx = TFxUtil::makeAffine(fx, aff);
// this creates an over fx to lay the Scene Overlay, if there is one, over the
// current frame
TLevelColumnFx *overlayFx = scene->getOverlayFx(frame);
if (overlayFx) {
PlacedFx overlayPf = builder.makePF(overlayFx);
TFxP overlayAffine = TFxUtil::makeAffine(overlayPf.makeFx(), aff);
fx = TFxUtil::makeOver(fx, overlayAffine);
}
return fx;
}