mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2024-11-23 08:00:51 +01:00
Fix
This commit is contained in:
parent
2b5b1fe6ab
commit
d060d3f3b6
@ -78,9 +78,15 @@ export class AssetManager implements IAssetManager
|
||||
{
|
||||
if(!url || !url.length) return null;
|
||||
|
||||
let texture = this.getTexture(name);
|
||||
|
||||
if(!texture) texture = this.getTexture(url);
|
||||
|
||||
if(texture) return texture;
|
||||
|
||||
try
|
||||
{
|
||||
const texture = await Assets.load<Texture>(url);
|
||||
texture = await Assets.load<Texture>(url);
|
||||
|
||||
if(!texture) return null;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user