From d07810b63e231a39941fbabf5da90f744e73c1f7 Mon Sep 17 00:00:00 2001 From: manongjohn <19245851+manongjohn@users.noreply.github.com> Date: Sun, 29 Oct 2023 21:45:41 -0400 Subject: [PATCH] Fix missing scene overlay for Multiple Rendering options --- toonz/sources/toonzlib/scenefx.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/toonz/sources/toonzlib/scenefx.cpp b/toonz/sources/toonzlib/scenefx.cpp index 86df76a9..04452c46 100644 --- a/toonz/sources/toonzlib/scenefx.cpp +++ b/toonz/sources/toonzlib/scenefx.cpp @@ -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; }