You've already forked Nitro_Render_V3
mirror of
https://github.com/duckietm/Nitro_Render_V3.git
synced 2026-06-19 15:06:20 +00:00
Merge pull request #40 from duckietm/Dev
🆙 Fix 2 avatar.mandatory.libraries
This commit is contained in:
@@ -23,9 +23,18 @@ export class AvatarAssetDownloadManager
|
||||
this._structure = structure;
|
||||
}
|
||||
|
||||
private static DEFAULT_MANDATORY_LIBS: string[] = ['hh_human_face'];
|
||||
|
||||
public async init(): Promise<void>
|
||||
{
|
||||
this._missingMandatoryLibs = GetConfiguration().getValue<string[]>('avatar.mandatory.libraries');
|
||||
const configuredLibs = GetConfiguration().getValue<string[]>('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<string>('avatar.figuremap.url');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user