Scene Manager: named LODs

{lod} in SCENE_MANAGER_LOD_COLLECTION now matches any name (COL_bob_LODhigh
as well as COL_bob_LOD0). SCENE_MANAGER_LODS (high, mid, low) sets the
button order and the LOD shown on load; unlisted LODs follow, numbers in
order, then names A-Z. It replaces SCENE_MANAGER_DEFAULT_LOD. The LOD of
Selected buttons get their own line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
NDemaerschalkandClaude Opus 5.5 committed 2026-10-27 16:46:36 +01:00
1 parent bac7a6f5da
commit 6ec2b228ae
8 files changed
+80 -61

No files matched your search

+6 -4
View File
@@ -299,11 +299,13 @@ SCENE_MANAGER_LINK_MODES = {
"*": "INSTANCE",
}
# Levels of detail: child collections of the asset collection, one per LOD ({asset} =
# asset name, {lod} = LOD number). An override shows one and hides the others; a
# collection instance instances it.
# asset name, {lod} = LOD name, any name: COL_bob_LOD0, COL_bob_LODhigh...). An override
# shows one and hides the others; a collection instance instances it. Keep a fixed part
# around {lod} ("LOD"): every child collection matching the pattern counts as a LOD.
SCENE_MANAGER_LOD_COLLECTION = "COL_{asset}_LOD{lod}"
# LOD shown when an asset is loaded (the lowest one when missing). None: as in the file.
SCENE_MANAGER_DEFAULT_LOD = 0
# Order of the LOD names; the first one the file has is shown when an asset is loaded.
# LODs not listed come after them: numbers in order (0, 1, 2...), then names A-Z.
SCENE_MANAGER_LODS = ["high", "mid", "low"]
# Collection gathering the loaded assets of a type, under the scene collection.
SCENE_MANAGER_TYPE_COLLECTION = "COL_{asset_type}"
# Default task of the assetize dialog.