From 7d3bfa32ca1be60e4bd1fc2e886f72f46a6af42d Mon Sep 17 00:00:00 2001 From: MAJigsaw77 <77043862+MAJigsaw77@users.noreply.github.com> Date: Tue, 17 Mar 2026 22:26:13 +0200 Subject: [PATCH] Run `clearAssets` only on non display --- project.hxp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/project.hxp b/project.hxp index b9896eba4..8c9e8cd74 100644 --- a/project.hxp +++ b/project.hxp @@ -1406,8 +1406,11 @@ class Project extends HXProject function configureAssets() { - // Delete the assets folder from the export folder before adding anything. - clearAssets(); + if (!isDisplay()) + { + // Delete the assets folder from the export folder before adding anything. + clearAssets(); + } var exclude = EXCLUDE_ASSETS.concat(isWeb() ? EXCLUDE_ASSETS_WEB : EXCLUDE_ASSETS_NATIVE); var shouldPreload = PRELOAD_ALL.isEnabled(this);