From e104adfc0f404bfe78c82aec4fdfaed073fc5651 Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Fri, 17 May 2024 02:09:29 +0200 Subject: [PATCH] Fix entrypoint crashes --- example/manifest.json | 2 +- example/src/entrypoint.gd | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/example/manifest.json b/example/manifest.json index bf1e06d..8c09d8c 100644 --- a/example/manifest.json +++ b/example/manifest.json @@ -12,7 +12,7 @@ "contributors": [ "Contributors" ], "license": "AGPL-3.0-or-later", "entrypoint": "entrypoint.gd", - "slides": 5, + "slides": 1, "animations": false, "display_end_text_after_last_slide": true } diff --git a/example/src/entrypoint.gd b/example/src/entrypoint.gd index 97d24dc..d94371a 100644 --- a/example/src/entrypoint.gd +++ b/example/src/entrypoint.gd @@ -19,4 +19,4 @@ func switch_to_slide(new_slide: int) -> void: api.remove_all_slides() # Add new slide - sms.add_scene("slide", resources["slide_" + str(new_slide)], CoreTypes.SceneType.MAIN) + sms.add_scene("slide", resources["slide_" + str(new_slide)].duplicate(), CoreTypes.SceneType.MAIN)