Skip to content

Commit

Permalink
fix: Compilation with older C# versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
atteneder committed May 25, 2022
1 parent cc4d480 commit 2095ab4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Runtime/Scripts/GltfImport.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1094,9 +1094,9 @@ void LoadImage( int imageIndex, Uri url, bool nonReadable, bool isKtx ) {
return;
#endif // KTX_UNITY
} else {
TextureDownloadBase downloadTask = LoadImageFromBytes(imageIndex)
? new TextureDownload<IDownload>(downloadProvider.Request(url))
: new TextureDownload<ITextureDownload>(downloadProvider.RequestTexture(url,nonReadable));
var downloadTask = LoadImageFromBytes(imageIndex)
? (TextureDownloadBase) new TextureDownload<IDownload>(downloadProvider.Request(url))
: (TextureDownloadBase) new TextureDownload<ITextureDownload>(downloadProvider.RequestTexture(url,nonReadable));
if(textureDownloadTasks==null) {
textureDownloadTasks = new Dictionary<int, TextureDownloadBase>();
}
Expand Down

0 comments on commit 2095ab4

Please sign in to comment.