Commit 7a194a4
Fix pattern fill rendering bug
Two issues prevented pattern fills from rendering:
1. In ir/lower.clj resolve-fill: the case matched :fill/pattern but
scene fills arrive as :pattern. Add :pattern as an alias.
Make resolve-fill public so effect.clj can reuse it.
2. In ir/effect.clj item->base-op: fill resolution only handled
color vectors and {:r :g :b} maps, silently dropping pattern,
gradient, and other semantic fills. Delegate to resolve-fill
for any fill with :fill/type.
This was a pre-existing bug (present since pattern fills were added),
not caused by the namespace restructuring.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 2767739 commit 7a194a4
2 files changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
| 79 | + | |
79 | 80 | | |
80 | 81 | | |
| 82 | + | |
81 | 83 | | |
82 | 84 | | |
83 | 85 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
0 commit comments