mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2024-11-26 17:30:52 +01:00
cleaned AvatarAnimationFrame
This commit is contained in:
parent
428ae04cf6
commit
96737416ef
@ -941,7 +941,7 @@ export class AvatarImage implements IAvatarImage, IAvatarEffectListener
|
||||
{
|
||||
return;
|
||||
}
|
||||
if(k.definition._Str_778 == '')
|
||||
if(k.definition.assetPartDefinition == '')
|
||||
{
|
||||
return;
|
||||
}
|
||||
@ -958,7 +958,7 @@ export class AvatarImage implements IAvatarImage, IAvatarEffectListener
|
||||
{
|
||||
if(!k) return;
|
||||
|
||||
if(k.definition._Str_778 === '') return;
|
||||
if(k.definition.assetPartDefinition === '') return;
|
||||
|
||||
if(k.definition._Str_779)
|
||||
{
|
||||
|
@ -73,7 +73,7 @@ export class AvatarImagePartContainer
|
||||
{
|
||||
const frame = this._frames[frameNumber];
|
||||
|
||||
return (this.partId + ':' + frame._Str_778 + ':' + frame.number);
|
||||
return (this.partId + ':' + frame.assetPartDefinition + ':' + frame.number);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -172,7 +172,7 @@ export class ActionDefinition implements IActionDefinition
|
||||
return this._activePartSet;
|
||||
}
|
||||
|
||||
public get _Str_778(): string
|
||||
public get assetPartDefinition(): string
|
||||
{
|
||||
return this._assetPartDefinition;
|
||||
}
|
||||
|
@ -7,7 +7,7 @@ export interface IActionDefinition
|
||||
activePartSet: string;
|
||||
_Str_779: boolean;
|
||||
_Str_804: boolean;
|
||||
_Str_778: string;
|
||||
assetPartDefinition: string;
|
||||
lay: string;
|
||||
_Str_868: string;
|
||||
_Str_861: boolean;
|
||||
|
4
src/nitro/avatar/cache/AvatarImageCache.ts
vendored
4
src/nitro/avatar/cache/AvatarImageCache.ts
vendored
@ -331,7 +331,7 @@ export class AvatarImageCache
|
||||
}
|
||||
|
||||
const isFlipped = AvatarDirectionAngle.DIRECTION_IS_FLIPPED[direction] || false;
|
||||
let assetPartDefinition = _arg_4.definition._Str_778;
|
||||
let assetPartDefinition = _arg_4.definition.assetPartDefinition;
|
||||
let isCacheable = true;
|
||||
let containerIndex = (containers.length - 1);
|
||||
|
||||
@ -355,7 +355,7 @@ export class AvatarImageCache
|
||||
{
|
||||
frameNumber = animationFrame.number;
|
||||
|
||||
if((animationFrame._Str_778) && (animationFrame._Str_778 !== '')) assetPartDefinition = animationFrame._Str_778;
|
||||
if((animationFrame.assetPartDefinition) && (animationFrame.assetPartDefinition !== '')) assetPartDefinition = animationFrame.assetPartDefinition;
|
||||
}
|
||||
else frameNumber = container.getFrameIndex(frameCount);
|
||||
|
||||
|
@ -14,7 +14,7 @@ export class AvatarAnimationFrame
|
||||
return this._number;
|
||||
}
|
||||
|
||||
public get _Str_778(): string
|
||||
public get assetPartDefinition(): string
|
||||
{
|
||||
return this._assetPartDefinition;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user