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

@ -189,7 +189,7 @@ Christian Donat <https://github.com/cdonat2>
Asuka Minato <https://asukaminato.eu.org> Asuka Minato <https://asukaminato.eu.org>
Dillon Baldwin <https://github.com/DillBal> Dillon Baldwin <https://github.com/DillBal>
Voczi <https://github.com/voczi> Voczi <https://github.com/voczi>
Ben Nguyen <105088397+bpnguyen107@users.noreply.github.com> Ben Nguyen <105088397+bpnguyen107@users.noreply.github.com>
Themis Demetriades <themis100@outlook.com> Themis Demetriades <themis100@outlook.com>
Luke Bartholomew <lukesbart@icloud.com> Luke Bartholomew <lukesbart@icloud.com>
Gregory Abrasaldo <degeemon@gmail.com> Gregory Abrasaldo <degeemon@gmail.com>
@ -249,7 +249,8 @@ Toby Penner <tobypenner01@gmail.com>
Danilo Spillebeen <spillebeendanilo@gmail.com> 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,