diff options
Diffstat (limited to 'public/bluebey-studio/src/faceArt.js')
| -rw-r--r-- | public/bluebey-studio/src/faceArt.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/public/bluebey-studio/src/faceArt.js b/public/bluebey-studio/src/faceArt.js index 01e5c31..71e7487 100644 --- a/public/bluebey-studio/src/faceArt.js +++ b/public/bluebey-studio/src/faceArt.js @@ -1314,7 +1314,6 @@ export function drawEyes(ctx, p) { const lidWidth = style.lidWidth ?? EYE_LAYOUT.lidStroke; const irisScale = style.irisScale ?? 1; const lookMax = style.lookMax ?? 1; - const highlightOn = style.highlight !== false; const heartScale = 2; const heartColor = style.heartColor ?? '#e0344f'; const irisRadius = EYE_LAYOUT.irisRadius * irisScale; @@ -1424,6 +1423,8 @@ export function drawEyes(ctx, p) { } else { fillCircle(ctx, irisX, irisY, irisRadius, line ? lineColor : irisColor); } + // 光彩 (the white glint) is per eye, falling back to the shared switch. + const highlightOn = spec.highlight != null ? spec.highlight === true : style.highlight !== false; if (highlightOn && !isHeart) { const hx = irisX + layout.towardNose * EYE_LAYOUT.highlightOffset.x * irisScale; const hy = irisY + EYE_LAYOUT.highlightOffset.y * irisScale; |
