From f0e09a1fad8fc3e451401d99750e03f080b20e64 Mon Sep 17 00:00:00 2001 From: Finn Schoellkopf Date: Fri, 28 Jul 2023 12:46:03 +0200 Subject: [PATCH] Merge commit 'b6c34dd79479212999444236d13894fb0453807e' --- addons/pronto/behaviors/ExportBehavior.gd | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/addons/pronto/behaviors/ExportBehavior.gd b/addons/pronto/behaviors/ExportBehavior.gd index 60794fcf..b41a5d33 100644 --- a/addons/pronto/behaviors/ExportBehavior.gd +++ b/addons/pronto/behaviors/ExportBehavior.gd @@ -26,6 +26,8 @@ var export_path func _ready(): super._ready() + + if OS.has_feature("release"): return var scene_path = get_tree().current_scene.scene_file_path var tmp = scene_path.split("/") @@ -34,6 +36,7 @@ func _ready(): _create_game_json() + if not take_screenshot: return # start thumbnail timer timer = Timer.new() timer.connect("timeout", _take_screenshot) @@ -43,7 +46,6 @@ func _ready(): timer.start() func _take_screenshot(): - if not take_screenshot: return var vpt = get_viewport() var tex = vpt.get_texture() tex.get_image().save_png(export_path + "thumbnail.png") @@ -51,7 +53,8 @@ func _take_screenshot(): func _create_game_json(): var game_dict = { - "title": title + "title": title, + "time": Time.get_date_string_from_system() } if not authors.is_empty(): game_dict["authors"] = authors