From e47f5882b899e19da7143c75222f9213e505d6d3 Mon Sep 17 00:00:00 2001 From: manongjohn <19245851+manongjohn@users.noreply.github.com> Date: Sat, 26 Nov 2022 02:07:20 -0500 Subject: [PATCH] Fix Particle Control Port handling --- toonz/sources/stdfx/particlesengine.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/toonz/sources/stdfx/particlesengine.cpp b/toonz/sources/stdfx/particlesengine.cpp index bf1ecc99..261529e9 100644 --- a/toonz/sources/stdfx/particlesengine.cpp +++ b/toonz/sources/stdfx/particlesengine.cpp @@ -526,6 +526,7 @@ void Particles_Engine::render_particles( TRectD bboxForInifiniteSource = ri.m_affine.inv() * outTileBBox; TRectD sourceBbox; if (values.source_ctrl_val && + (ctrl_ports.find(values.source_ctrl_val) != ctrl_ports.end()) && ctrl_ports.at(values.source_ctrl_val)->isConnected()) { (*(ctrl_ports.at(values.source_ctrl_val))) ->getBBox(r_frame, sourceBbox, riAux);