Skip to content

Commit

Permalink
fix door upgrade issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Yanis002 committed Jan 9, 2024
1 parent 3eed0ee commit 2c03117
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions fast64_internal/oot/oot_upgrade.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import bpy

from dataclasses import dataclass
from typing import TYPE_CHECKING
from bpy.types import Object, CollectionProperty
Expand Down Expand Up @@ -313,10 +315,11 @@ def upgradeActors(actorObj: Object):
break
elif actorObj.ootEmptyType == "Transition Actor":
transActorProp = actorObj.ootTransitionActorProperty
transActorProp.isRoomTransition = actorObj["ootTransitionActorProperty"]["dontTransition"] == False
del actorObj["ootTransitionActorProperty"]["dontTransition"]
if "dontTransition" in transActorProp:
transActorProp.isRoomTransition = actorObj["ootTransitionActorProperty"]["dontTransition"] == False
del actorObj["ootTransitionActorProperty"]["dontTransition"]

if transActorProp.isRoomTransition:
if "roomIndex" in transActorProp:
for obj in bpy.data.objects:
if obj.type == "EMPTY":
if obj.ootEmptyType == "Room":
Expand Down

0 comments on commit 2c03117

Please sign in to comment.