Skip to content

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

C

change behavior of blend-ino fx without back layer

shun-iwasawaa834fd30b03f
diff --git a/toonz/sources/stdfx/ino_common.cpp b/toonz/sources/stdfx/ino_common.cpp
index 6d7397010..9b28199f1 100644
--- a/toonz/sources/stdfx/ino_common.cpp
+++ b/toonz/sources/stdfx/ino_common.cpp
@@ -288,9 +288,13 @@ void TBlendForeBackRasterFx::doCompute(TTile& tile, double frame,
/* ------ 画像生成 ---------------------------------------- */
TRasterP dn_ras, up_ras;
this->computeUpAndDown(tile, frame, rs, dn_ras, up_ras);
- if (!dn_ras || !up_ras) {
+ if (!up_ras) {
return;
}
+ // blend on the empty raster if the back port is not active
+ if (!dn_ras) {
+ dn_ras = tile.getRaster();
+ }
/* ------ 動作パラメータを得る ---------------------------- */
const double up_opacity =
this->m_opacity->getValue(frame) / ino::param_range();
@@ -546,7 +550,11 @@ fxをreplaceすると、
}
/* ------ up接続かつdown切断の時 -------------------------- */
if (up_is && !down_is) {
- this->m_up->compute(tile, frame, rs);
+ TTile upTile;
+ this->m_up->allocateAndCompute(upTile, tile.m_pos,
+ tile.getRaster()->getSize(),
+ tile.getRaster(), frame, rs);
+ up_ras = upTile.getRaster();
return;
}
/* ------ down接続時 downのみ描画して... ------------------ */