Render cache: the soloed-model key reads main's two-argument reads_other_times

#2410's dependency walk for a soloed 3D model was written before
reads_other_times took the effect count; it asks about all effects (None),
as the other walks do.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
bflatastic
2026-10-30 04:48:42 +07:00
co-authored by Claude Opus 5.5
parent 661f95b901
commit 8b846ffdf1
+1 -1
View File
@@ -73,7 +73,7 @@ impl Dependencies<'_> {
fn soloed_model(&mut self, ctx: &EvalCtx, layer: &Layer) -> Option<()> {
self.remaining = self.remaining.checked_sub(1)?;
// Expressions sampled at other times: not cacheable, as in the ordinary path.
if (self.other_times || super::reads_other_times(layer)) && super::has_expression(&layer.props) {
if (self.other_times || super::reads_other_times(layer, None)) && super::has_expression(&layer.props) {
return None;
}
hash_debug(self.h, layer);