You've already forked Nitro_Render_V3
mirror of
https://github.com/duckietm/Nitro_Render_V3.git
synced 2026-06-20 07:26:18 +00:00
🆙 Small fix NFT Clothing
This commit is contained in:
@@ -243,6 +243,28 @@ export class AvatarAssetDownloadManager
|
|||||||
return pendingLibraries;
|
return pendingLibraries;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public isNftPartSet(partSet: { parts: { type: string, id: number }[] }): boolean
|
||||||
|
{
|
||||||
|
if(!partSet || !partSet.parts) return false;
|
||||||
|
|
||||||
|
for(const part of partSet.parts)
|
||||||
|
{
|
||||||
|
if(!part) continue;
|
||||||
|
|
||||||
|
const name = (part.type + ':' + part.id);
|
||||||
|
const libraries = this._figureMap.get(name);
|
||||||
|
|
||||||
|
if(!libraries) continue;
|
||||||
|
|
||||||
|
for(const library of libraries)
|
||||||
|
{
|
||||||
|
if(library && library.libraryName.toLowerCase().includes('nft')) return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
public downloadAvatarFigure(container: IAvatarFigureContainer, listener: IAvatarImageListener): void
|
public downloadAvatarFigure(container: IAvatarFigureContainer, listener: IAvatarImageListener): void
|
||||||
{
|
{
|
||||||
const figure = container.getFigureString();
|
const figure = container.getFigureString();
|
||||||
|
|||||||
Reference in New Issue
Block a user