M4.10: a nested comp shows nothing before it starts or after it ends
A precomp layer trimmed out (or time-remapped) past its nested comp's end kept drawing the nested layers whose bars ran on. Like After Effects, the nested comp now shows nothing outside its own span (`Comp::covers`), flattened, through a proxy or with Collapse Transformations, on the CPU and the GPU (both go through `Renderer::source` / `collapse_into`). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
0fe6db00e8
commit
0b5cff1743
@@ -374,6 +374,11 @@ impl Comp {
|
||||
essential: None,
|
||||
}
|
||||
}
|
||||
/// Whether the composition has a frame at its time `t`: nested, it shows nothing before it
|
||||
/// starts or after it ends (a precomp layer trimmed or remapped past it).
|
||||
pub fn covers(&self, t: Tick) -> bool {
|
||||
t >= Tick::ZERO && t < self.duration
|
||||
}
|
||||
/// A new, empty composition with this one's settings (frame rate, pixel aspect, background,
|
||||
/// motion blur, frame blending and the 3D renderer), as Pre-compose makes.
|
||||
pub fn nested_like(&self, width: u32, height: u32, duration: Tick) -> Comp {
|
||||
|
||||
Reference in New Issue
Block a user