Commit 461e941
committed
Use len(draw_data.cmd_lists) in imgui backend
<details><summary>Claude's draft</summary>
`ImDrawData.cmd_lists_count` was a legacy alias, documented in the imgui_bundle
stubs as `== CmdLists.Size`, and imgui_bundle removed it in 1.92.900. Every
`ImguiWgpuBackend.render()` call raises AttributeError against that release.
Fixes #829.
`len(draw_data.cmd_lists)` is exactly what the removed attribute equalled, and
works across the whole supported `imgui-bundle>=1.92.0,<2` range: verified
against 1.92.0, 1.92.3, 1.92.4, 1.92.5, 1.92.600, 1.92.601, 1.92.700, 1.92.801
and 1.92.900. No shim or version check is needed, and the pin does not need
narrowing.
The test from the previous commit fails without this change and passes with it.
Resume this Claude session:
```
cd /home/mark/git/wgpu-py
claude --resume 590dd7bc-312c-419e-ad3d-2c69d00943cd
```
</details>1 parent 71d2a61 commit 461e941
2 files changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
36 | 40 | | |
37 | 41 | | |
38 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
445 | 445 | | |
446 | 446 | | |
447 | 447 | | |
448 | | - | |
| 448 | + | |
449 | 449 | | |
450 | 450 | | |
451 | 451 | | |
| |||
0 commit comments