From b476486f3e36c18f1cdfa775be23708cd1bec5a0 Mon Sep 17 00:00:00 2001 From: cqdowning Date: Sun, 27 Oct 2024 23:32:51 -0700 Subject: [PATCH] Camera selector fix Fixed issue where the current camera when launching the game will be the first camera in the world node tree instead of the camera array --- Obscura/scripts/camera_selector.gd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Obscura/scripts/camera_selector.gd b/Obscura/scripts/camera_selector.gd index e99949b..6c979c9 100644 --- a/Obscura/scripts/camera_selector.gd +++ b/Obscura/scripts/camera_selector.gd @@ -8,9 +8,9 @@ var current_controller:int = 0 func _ready(): for camera in cameras: if null != camera: - camera.current = false + camera.call_deferred("clear_current") if(len(cameras) > current_controller+1): - cameras[current_controller].make_current() + cameras[current_controller].call_deferred("make_current") func _process(_delta):