Skip to content

Commit

Permalink
[Assets] PackAssets: properly copy RootAssets (fixes #347)
Browse files Browse the repository at this point in the history
  • Loading branch information
xen2 committed Jan 27, 2019
1 parent 989469d commit 7144d61
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -222,6 +222,9 @@ void TryCopyResource(UFile resourceFilePath, UFile targetFilePath)
newPackage.TemplateFolders.Add(targetFolder);
}

foreach (var rootAsset in package.RootAssets)
newPackage.RootAssets.Add(rootAsset);

// Save package only if there is any resources and/or assets
if (generatedItems.Count > 0)
{
Expand Down

0 comments on commit 7144d61

Please sign in to comment.