From c9c5b5d7c2a238310ce7bde336f76d2d1b6f9f29 Mon Sep 17 00:00:00 2001 From: jacopograndi Date: Sat, 15 Jan 2022 16:29:02 +0100 Subject: moved shapes to loading area & fixed asset paths --- scripts/load_turrets.gd | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'scripts/load_turrets.gd') diff --git a/scripts/load_turrets.gd b/scripts/load_turrets.gd index ba2e198..2b96652 100644 --- a/scripts/load_turrets.gd +++ b/scripts/load_turrets.gd @@ -41,12 +41,6 @@ func load_info(): func load_models(): models.clear() - var files = saveload.parse_dir("res://models/turrets", ".glb") + var files = saveload.parse_dir("res://assets/models/turrets", ".glb") for turr in files: - models[turr] = load("res://models/turrets/" + turr) - -func load_thumbs(): - thumbs.clear() - var files = saveload.parse_dir("res://textures/thumbnails", ".png") - for turr in files: - thumbs[turr] = load("res://textures/thumbnails/" + turr) + models[turr] = load("res://assets/models/turrets/" + turr) -- cgit v1.2.3-54-g00ecf