Skip to content
Permalink
Browse files

[Assets] NewGameTemplateGenerator: assets were loaded twice, resultin…

…g in issues later with cloned AssetItem (fix asset packs)
  • Loading branch information
xen2 committed Sep 12, 2018
1 parent 02488c4 commit 857b8b2e63d0385125927f68dac86eee355485a2
Showing with 0 additions and 6 deletions.
  1. +0 −6 sources/editor/Xenko.Assets.Presentation/Templates/NewGameTemplateGenerator.cs
@@ -158,12 +158,6 @@ protected override bool Generate(SessionTemplateGeneratorParameters parameters)
// Add asset packages
CopyAssetPacks(parameters, package);

// Load assets from HDD
package.LoadTemporaryAssets(logger);

// Validate assets
package.ValidateAssets(true, false, logger);

// Create camera script
var cameraScriptTemplate = TemplateManager.FindTemplates(package.Session).OfType<TemplateAssetDescription>().FirstOrDefault(x => x.DefaultOutputName == CameraScriptDefaultOutputName);
if (cameraScriptTemplate == null)

0 comments on commit 857b8b2

Please sign in to comment.
You can’t perform that action at this time.