AssetHelper: don't bother creating the default library if there are no assets

This commit is contained in:
Josh Tynjala
2021-11-17 15:13:02 -08:00
parent 568eaefa83
commit e3d49867fb

View File

@@ -427,7 +427,7 @@ class AssetHelper
} }
} }
if (!libraryMap.exists(DEFAULT_LIBRARY_NAME)) if (project.assets.length > 0 && !libraryMap.exists(DEFAULT_LIBRARY_NAME))
{ {
library = new Library(null, DEFAULT_LIBRARY_NAME); library = new Library(null, DEFAULT_LIBRARY_NAME);
project.libraries.push(library); project.libraries.push(library);