From 41a02f27e24458e5cceffb8e8276e1ba72b661f5 Mon Sep 17 00:00:00 2001 From: blinry Date: Mon, 18 Jan 2021 14:14:08 +0100 Subject: [PATCH] Quick fix for images on cards --- export_presets.cfg | 2 +- scenes/card.gd | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/export_presets.cfg b/export_presets.cfg index d44ab73..dc5d236 100644 --- a/export_presets.cfg +++ b/export_presets.cfg @@ -5,7 +5,7 @@ platform="Linux/X11" runnable=true custom_features="" export_filter="all_resources" -include_filter="levels/*, scripts/*, resources/*, cards/*" +include_filter="levels/*, scripts/*, resources/*, cards/* exclude_filter="dependencies/*, cache/*" export_path="" patch_list=PoolStringArray( ) diff --git a/scenes/card.gd b/scenes/card.gd index 90c251f..1e4d565 100644 --- a/scenes/card.gd +++ b/scenes/card.gd @@ -104,10 +104,10 @@ func set_id(new_id): id = new_id var art_path = "res://cards/%s.svg" % new_id var file = File.new() - if file.file_exists(art_path): - var texture = load(art_path) - if texture: - $Image.texture = texture + #if file.file_exists(art_path): + var texture = load(art_path) + if texture: + $Image.texture = texture func move_back(): position = _home_position