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

They now read their Birth Rate at earlier times too, so
effects::reads_param_history names them along with CC Particle World. A
layer key can't see what an expression returned then.
This commit is contained in:
tylerjenningsw
2026-10-13 22:35:37 -04:00
parent 16cc290a47
commit 6fcfc355e3
+3 -3
View File
@@ -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.