Skip to content
Permalink
Browse files

[Assets] Process dependencies for RootAssets in view model

  • Loading branch information
xen2 committed Oct 2, 2018
1 parent a22b62f commit f608ae5598a32f0d5e9695e2b141c8271706cea0
Showing with 5 additions and 0 deletions.
  1. +5 −0 sources/editor/Xenko.Core.Assets.Editor/ViewModel/PackageViewModel.cs
@@ -268,6 +268,11 @@ private void FillRootAssetCollection()
{
RootAssets.Clear();
RootAssets.AddRange(Package.RootAssets.Select(x => Session.GetAssetById(x.Id)));
foreach (var dependency in PackageContainer.FlattenedDependencies)
{
if (dependency.Package != null)
RootAssets.AddRange(dependency.Package.RootAssets.Select(x => Session.GetAssetById(x.Id)));
}
RegisterMemberCollectionForActionStack(nameof(RootAssets), RootAssets);
RootAssets.CollectionChanged += RootAssetsCollectionChanged;
}

0 comments on commit f608ae5

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