From 77ccce7d7416e227df00717ee147a7f32ebca5a3 Mon Sep 17 00:00:00 2001 From: Relintai Date: Sun, 26 Apr 2020 11:26:42 +0200 Subject: [PATCH] Moved the camera out of data. --- game/player/Body.gd | 2 +- game/{data => player}/camera/CameraPivot.tscn | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename game/{data => player}/camera/CameraPivot.tscn (100%) diff --git a/game/player/Body.gd b/game/player/Body.gd index 6d62e411..94364005 100644 --- a/game/player/Body.gd +++ b/game/player/Body.gd @@ -581,7 +581,7 @@ func on_c_controlled_changed(val): _controlled = val if val: - var cam_scene : PackedScene = ResourceLoader.load("res://data/camera/CameraPivot.tscn") + var cam_scene : PackedScene = ResourceLoader.load("res://player/camera/CameraPivot.tscn") camera_pivot = cam_scene.instance() as Spatial add_child(camera_pivot) camera = camera_pivot.get_node("Camera") as Camera diff --git a/game/data/camera/CameraPivot.tscn b/game/player/camera/CameraPivot.tscn similarity index 100% rename from game/data/camera/CameraPivot.tscn rename to game/player/camera/CameraPivot.tscn