Skip to content

Commit

Permalink
Add some TODOs and commented-out wip code
Browse files Browse the repository at this point in the history
  • Loading branch information
andybak committed Nov 13, 2024
1 parent a051f12 commit 430e328
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions Assets/Scripts/Poly/IcosaAssetCatalog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -826,6 +826,7 @@ void LoadModelsInQueueAsync()
Model model = m_LoadQueue[i].Model;
model.LoadModel();
// TODO Back to async loading
// AsyncHelpers.RunSync(model.LoadModelAsync);
m_LoadQueue.RemoveAt(i);
m_IsLoadingMemo = null;
m_NotifyListeners = true;
Expand Down
8 changes: 8 additions & 0 deletions Assets/Scripts/Sharing/VrAssetService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -839,13 +839,17 @@ public AssetLister ListAssets(SketchSetType type)
{
return null;
}
// TODO Filter out non-remixable assets
// filteredUriPath = CombineQueryParams(kUserLikesUri, "format=TILT&orderBy=LIKED_TIME&license=CREATIVE_COMMONS_BY");
filteredUriPath = CombineQueryParams(kUserLikesUri, "format=TILT&orderBy=LIKED_TIME");
errorMessage = "Failed to access your liked sketches.";
break;
case SketchSetType.Curated:
// Old way - newest curated
// filteredUriPath = CombineQueryParams(kListAssetsUri, "format=TILT&curated=true&orderBy=NEWEST");
// For now try just sorting by "best"
// TODO Filter out non-remixable assets
// filteredUriPath = CombineQueryParams(kListAssetsUri, "format=TILT&orderBy=BEST&license=CREATIVE_COMMONS_BY");
filteredUriPath = CombineQueryParams(kListAssetsUri, "format=TILT&orderBy=BEST");
errorMessage = "Failed to access featured sketches.";
break;
Expand Down Expand Up @@ -892,6 +896,8 @@ public AssetLister ListAssets(IcosaSetType type)
switch (type)
{
case IcosaSetType.Liked:
// TODO Filter out non-remixable assets
// uri += $"{kUserLikesUri}?orderBy=LIKED_TIME&license=CREATIVE_COMMONS_BY";
uri += $"{kUserLikesUri}?orderBy=LIKED_TIME";
break;
case IcosaSetType.User:
Expand All @@ -901,6 +907,8 @@ public AssetLister ListAssets(IcosaSetType type)
// Old way - newest curated
// uri += $"{kListAssetsUri}" + $"?curated=true&orderBy=NEWEST";
// For now try just sorting by "best"
// TODO Filter out non-remixable assets
// uri += $"{kListAssetsUri}" + $"?orderBy=BEST&license=CREATIVE_COMMONS_BY";
uri += $"{kListAssetsUri}" + $"?orderBy=BEST";
// Something like orderBy=TRENDING would be good - BEST but weighted by recency
break;
Expand Down

0 comments on commit 430e328

Please sign in to comment.