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:
parent
d245096bc5
commit
6c00b0ff62
@ -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:
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user