Fix #132529: VSE strip scaled to 0.0 occludes strips below it

The "does a strip cover whole screen" logic did not handle the case
of completely zero size strip, and thus was wrongly deciding
that the strip is opaque.

Pull Request: https://projects.blender.org/blender/blender/pulls/132714
This commit is contained in:
Aras Pranckevicius
2025-01-06 20:21:20 +02:00
committed by Gitea
parent ab1fc88f2e
commit 016167e8f3

View File

@@ -514,6 +514,9 @@ static bool is_strip_covering_screen(const SeqRenderData *context, const Strip *
x1 = xmid + (x1 - xmid) * x_aspect;
}
StripScreenQuad quad = get_strip_screen_quad(context, seq);
if (quad.is_empty()) {
return false; /* Strip is zero size. */
}
StripScreenQuad screen{float2(x0, y0), float2(x1, y0), float2(x0, y1), float2(x1, y1)};
return is_quad_a_inside_b(screen, quad);