Merge pull request #1062 from manongjohn/fix_particle_control_port_handling

Fix Particle Control Port handling
This commit is contained in:
manongjohn 2022-12-01 06:40:28 -05:00 committed by GitHub
commit 1268f5d90f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);