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: 2 additions & 6 deletions Obscura/scripts/camera_selector.gd
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ var current_controller:int = 0
func _ready():
for camera in cameras:
if null != camera:
camera.current = false
(func (): camera.current = false).call_deferred()
if(len(cameras) > current_controller+1):
cameras[current_controller].make_current()

Expand All @@ -18,7 +18,7 @@ func _process(_delta):
current_controller += 1
if len(cameras) < current_controller+1:
current_controller = 0

for index in len(cameras):
if null != cameras[index]:
if index == current_controller:
Expand All @@ -32,7 +32,3 @@ func _process(_delta):
if null != cameras[index]:
current_controller = index
cameras[current_controller].make_current()