mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-09 21:53:40 +00:00
misc: add Blender 5.2 offset for Quick Favorites user_menus
This commit is contained in:
@@ -112,10 +112,14 @@ class Misc(bonsai.core.tool.Misc):
|
|||||||
reading data and never writing, to avoid the possibility of corrupting user preferences.
|
reading data and never writing, to avoid the possibility of corrupting user preferences.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
# Byte offset of UserDef.user_menus within the UserDef C struct, per (major, minor)
|
||||||
|
# Blender version. Shifts whenever UserDef's fields change, so must be re-derived
|
||||||
|
# per version (e.g. from that Blender build's SDNA).
|
||||||
OFFSET_USER_MENUS: dict[tuple[int, int], int] = {
|
OFFSET_USER_MENUS: dict[tuple[int, int], int] = {
|
||||||
(4, 5): 10032,
|
(4, 5): 10032,
|
||||||
(5, 0): 10032,
|
(5, 0): 10032,
|
||||||
(5, 1): 10032,
|
(5, 1): 10032,
|
||||||
|
(5, 2): 10800,
|
||||||
}
|
}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|||||||
Reference in New Issue
Block a user