Run clearAssets only on non display

This commit is contained in:
MAJigsaw77
2026-03-17 22:59:04 -06:00
committed by Hundrec
parent 348647f486
commit 7d3bfa32ca
+5 -2
View File
@@ -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);