Commit 8da18d2
Address review: deduplicate cmap(0) call, add error tests, trim warning
- Reuse pre-computed zero_colors array instead of calling cmap(0) twice
- Add tests for norm list length mismatch and empty norm list
- Remove unconditional multi-cmap warning (signal-based blend handles it)
- Clarify norms field naming with inline comment
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 026a28d commit 8da18d2
3 files changed
Lines changed: 23 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1203 | 1203 | | |
1204 | 1204 | | |
1205 | 1205 | | |
1206 | | - | |
1207 | | - | |
| 1206 | + | |
1208 | 1207 | | |
1209 | | - | |
| 1208 | + | |
1210 | 1209 | | |
1211 | 1210 | | |
1212 | 1211 | | |
| |||
1260 | 1259 | | |
1261 | 1260 | | |
1262 | 1261 | | |
1263 | | - | |
1264 | | - | |
1265 | | - | |
1266 | | - | |
1267 | 1262 | | |
1268 | 1263 | | |
1269 | 1264 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
264 | 264 | | |
265 | 265 | | |
266 | 266 | | |
267 | | - | |
| 267 | + | |
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
171 | 172 | | |
172 | 173 | | |
173 | 174 | | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
174 | 194 | | |
175 | 195 | | |
176 | 196 | | |
| |||
0 commit comments