Bugbot camera will no longer attempt to take properties of the active game camera unless one was active in the first place.

This commit is contained in:
Jamie Greunbaum 2024-05-15 14:21:07 -04:00
parent d245096bc5
commit 6c00b0ff62
2 changed files with 6 additions and 6 deletions

View File

@ -198,11 +198,12 @@ func _exit_tree() -> void:
get_tree().paused = stored_pause_status
func _ready() -> void:
global_transform = stored_camera.global_transform
camera.current
camera.fov = stored_camera.fov
camera.near = stored_camera.near
camera.far = stored_camera.far
camera.current = true
if stored_camera:
global_transform = stored_camera.global_transform
camera.fov = stored_camera.fov
camera.near = stored_camera.near
camera.far = stored_camera.far
#endregion
func _process(_delta:float) -> void:

View File

@ -111,7 +111,6 @@ shape = SubResource("SphereShape3D_6gwao")
debug_color = Color(0.5, 0.7, 1, 1)
[node name="Camera3D" type="Camera3D" parent="CollisionShape3D"]
current = true
[node name="MovementSpeedChangeTimer" type="Timer" parent="."]
wait_time = 0.05