feat: update

This commit is contained in:
2026-04-17 22:18:04 +08:00
parent ff0a2e0f41
commit b492dc99b6
2 changed files with 10 additions and 5 deletions
+1 -1
View File
@@ -563,7 +563,7 @@ const COSMETIC_MAPPING = {
func apply_loadout(character_node: Node3D) -> void:
"""Apply equipped cosmetics from UserProfileManager.loadout onto the active character model.
It uses COSMETIC_MAPPING to dynamically swap visibility and materials of internal meshes."""
if not has_node("/root/UserProfileManager"):
if not Engine.get_main_loop().root.has_node("UserProfileManager"):
return
var loadout: Dictionary = UserProfileManager.loadout