Skip to content

Commit

Permalink
Hopefully fix ucode being set
Browse files Browse the repository at this point in the history
  • Loading branch information
Lilaa3 committed Oct 9, 2024
1 parent 24ebe8c commit 178e3fe
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,13 +338,17 @@ def upgrade_changed_props():
OOT_ObjectProperties.upgrade_changed_props()
for scene in bpy.data.scenes:
settings: Fast64Settings_Properties = scene.fast64.settings
if settings.internal_game_update_ver < 2:
set_game_defaults(scene, False)
settings.internal_game_update_ver = 2

if scene.get("decomp_compatible", False):
scene.gameEditorMode = "Homebrew"
del scene["decomp_compatible"]

if settings.internal_game_update_ver == 0: # set world defaults, since we default to ucode defaults
set_game_defaults(scene, False)
if settings.internal_game_update_ver <= 1 and scene.gameEditorMode != "Homebrew" and scene.world is not None:
scene.world.rdp_defaults.g_lighting_positional = True # set lighting positional in old/new files
settings.internal_game_update_ver = 2

settings = scene.fast64.renderSettings
light0Color = settings.pop("lightColor", None)
if light0Color is not None:
Expand Down

0 comments on commit 178e3fe

Please sign in to comment.