Show text on occlusion cards regardless of occludeInactive.

Before this change, on an image occlusion card, a text box was visible
during editing but not visible during review. This change makes text
visible even if other shapes would be hidden.
This commit is contained in:
jariji 2025-10-11 21:28:02 +00:00
parent 76d3237139
commit 6524982029
2 changed files with 4 additions and 3 deletions

View file

@ -250,6 +250,7 @@ Danilo Spillebeen <spillebeendanilo@gmail.com>
Matbe766 <matildabergstrom01@gmail.com> Matbe766 <matildabergstrom01@gmail.com>
Amanda Sternberg <mandis.sternberg@gmail.com> Amanda Sternberg <mandis.sternberg@gmail.com>
arold0 <arold0@icloud.com> arold0 <arold0@icloud.com>
jariji
******************** ********************

View file

@ -212,7 +212,7 @@ function drawShapes(
strokeWidth: properties.activeBorder.width, strokeWidth: properties.activeBorder.width,
}); });
} }
for (const shape of inactiveShapes.filter((s) => s.occludeInactive)) { for (const shape of inactiveShapes.filter((s) => s.occludeInactive || s.ordinal === 0)) {
drawShape({ drawShape({
context, context,
size, size,