Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion fast64_internal/z64/exporter/scene/general.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from ...scene.properties import OOTSceneHeaderProperty, OOTLightProperty, OOTLightGroupProperty
from ...utility import getEvalParamsInt
from ..utility import Utility
from ....game_data import game_data


@dataclass
Expand Down Expand Up @@ -252,10 +253,15 @@ class SceneInfos:

@staticmethod
def new(props: OOTSceneHeaderProperty, sceneObj: Object):
if props.sceneTableEntry.drawConfig == "Custom":
drawConfig = props.sceneTableEntry.drawConfigCustom
else:
drawConfigKey = props.sceneTableEntry.drawConfig
drawConfig = game_data.z64.get_enum_value("draw_config", drawConfigKey)
return SceneInfos(
Utility.getPropValue(props, "globalObject"),
Utility.getPropValue(props, "naviCup"),
Utility.getPropValue(props.sceneTableEntry, "drawConfig"),
drawConfig,
props.appendNullEntrance,
sceneObj.fast64.oot.scene.write_dummy_room_list,
Utility.getPropValue(props, "title_card_name"),
Expand Down