Skip to content

EffectCraft: An open-source motion graphics and compositing tool written by scratch in pure Rust

Render: CC Particle Systems II and CC Mr. Mercury layers with expressions aren't layer cached (#1373)

tylerjenningsw6fcfc355e3e9
diff --git a/crates/effects/src/lib.rs b/crates/effects/src/lib.rs
index 645ae20bc..c4061f680 100644
--- a/crates/effects/src/lib.rs
+++ b/crates/effects/src/lib.rs
@@ -1248,11 +1248,11 @@ pub fn is_time_dependent(id: &str) -> bool {
id.starts_with("ec.sim.") || TIME_DEPENDENT.contains(&id)
}
-/// Does effect `id` read its own parameters at earlier times (CC Particle World samples its
-/// Birth Rate at every step, #1373)? Caches keyed on the current values can't see what an
+/// Does effect `id` read its own parameters at earlier times (the stepped particle systems sample
+/// their Birth Rate at every step, #1373)? Caches keyed on the current values can't see what an
/// expression returned then.
pub fn reads_param_history(id: &str) -> bool {
- id == "ec.sim.ccparticleworld"
+ matches!(id, "ec.sim.ccparticleworld" | "ec.sim.ccparticlesystems2" | "ec.sim.ccmrmercury")
}
/// Run an effect on a buffer.