Fix blender_theme_as_c.py after rename of ListBase::first

Fix `blender_theme_as_c.py` for the rename of `ListBase::first` to
`first_`.

The script actively parses `dna_rename_defs.h` before accessing the
file's DNA, which means it needs updating after the rename.

Pull Request: https://projects.blender.org/blender/blender/pulls/163948
This commit is contained in:
Sybren A. Stüvel 2026-09-15 11:19:09 +02:00
parent 717c29771d
commit 2ac1e4c040

View file

@ -156,7 +156,7 @@ def theme_data(userpref_filename):
dna_rename_defs(blend)
u = next((c for c in blend.blocks if c.code == b'USER'), None)
# theme_type = b.sdna_index_from_id[b'bTheme']
t = u.get_pointer((b'themes', b'first'))
t = u.get_pointer((b'themes', b'first_'))
t.refine_type(b'bTheme')
return blend, t