mirror of
https://github.com/blender/blender
synced 2026-09-28 04:04:20 +03:00
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:
parent
717c29771d
commit
2ac1e4c040
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue