diff --git a/packages/avatar/src/AvatarAssetDownloadManager.ts b/packages/avatar/src/AvatarAssetDownloadManager.ts index 1bac623..ada5077 100644 --- a/packages/avatar/src/AvatarAssetDownloadManager.ts +++ b/packages/avatar/src/AvatarAssetDownloadManager.ts @@ -23,9 +23,18 @@ export class AvatarAssetDownloadManager this._structure = structure; } + private static DEFAULT_MANDATORY_LIBS: string[] = ['hh_human_face']; + public async init(): Promise { - this._missingMandatoryLibs = GetConfiguration().getValue('avatar.mandatory.libraries'); + const configuredLibs = GetConfiguration().getValue('avatar.mandatory.libraries') || []; + + this._missingMandatoryLibs = [ ...configuredLibs ]; + + for(const lib of AvatarAssetDownloadManager.DEFAULT_MANDATORY_LIBS) + { + if(this._missingMandatoryLibs.indexOf(lib) === -1) this._missingMandatoryLibs.push(lib); + } const url = GetConfiguration().getValue('avatar.figuremap.url');