From 3b6671687c1edd8de46e65262e26bacbaf9aab4c Mon Sep 17 00:00:00 2001 From: Dragorn421 Date: Tue, 26 May 2026 07:54:24 +0200 Subject: [PATCH] [OoT] Fix scene_table drawConfig export --- fast64_internal/z64/exporter/scene/general.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/fast64_internal/z64/exporter/scene/general.py b/fast64_internal/z64/exporter/scene/general.py index ec112a1d1..be1f080a2 100644 --- a/fast64_internal/z64/exporter/scene/general.py +++ b/fast64_internal/z64/exporter/scene/general.py @@ -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 @@ -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"),