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
🆙 Added animations: Move, Wave, Talk, Sign, Respect, Blow, Laugh, Swim, Float.to default
This commit is contained in:
+17
-2
@@ -24,6 +24,7 @@ export class AvatarImageCache
|
||||
private _canvas: AvatarCanvas;
|
||||
private _disposed: boolean;
|
||||
private _geometryType: string;
|
||||
private _defaultAction: string = 'std';
|
||||
private _unionImages: ImageData[];
|
||||
private _matrix: Matrix;
|
||||
|
||||
@@ -140,6 +141,7 @@ export class AvatarImageCache
|
||||
{
|
||||
this._geometryType = k;
|
||||
this._canvas = null;
|
||||
this._defaultAction = (k === GeometryType.HORIZONTAL) ? 'lay' : 'std';
|
||||
|
||||
return;
|
||||
}
|
||||
@@ -147,7 +149,8 @@ export class AvatarImageCache
|
||||
this.disposeInactiveActions(0);
|
||||
|
||||
this._geometryType = k;
|
||||
this._canvas = null;
|
||||
this._canvas = null;
|
||||
this._defaultAction = (k === GeometryType.HORIZONTAL) ? 'lay' : 'std';
|
||||
}
|
||||
|
||||
public getImageContainer(key: string, frameNumber: number, forceRefresh: boolean = false): AvatarImageBodyPartContainer
|
||||
@@ -330,7 +333,19 @@ export class AvatarImageCache
|
||||
|
||||
if(!asset)
|
||||
{
|
||||
assetName = (this._scale + '_std_' + partType + '_' + partId + '_' + assetDirection + '_0');
|
||||
assetName = (this._scale + '_' + assetPartDefinition + '_' + partType + '_' + partId + '_' + assetDirection + '_0');
|
||||
asset = this._assets.getAsset(assetName);
|
||||
}
|
||||
|
||||
if(!asset)
|
||||
{
|
||||
assetName = (this._scale + '_' + this._defaultAction + '_' + partType + '_' + partId + '_' + assetDirection + '_' + frameNumber);
|
||||
asset = this._assets.getAsset(assetName);
|
||||
}
|
||||
|
||||
if(!asset)
|
||||
{
|
||||
assetName = (this._scale + '_' + this._defaultAction + '_' + partType + '_' + partId + '_' + assetDirection + '_0');
|
||||
asset = this._assets.getAsset(assetName);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user