Remove bone component cache, VKDoom Edition

This commit is contained in:
nashmuhandes 2025-01-30 21:54:29 +08:00
commit 87bda3d8d4
21 changed files with 80 additions and 113 deletions

View file

@ -1156,7 +1156,6 @@ public:
double Speed;
double FloatSpeed;
TObjPtr<DActorModelData*> modelData;
TObjPtr<DBoneComponents*> boneComponentData;
// interaction info
FBlockNode *BlockNode; // links in blocks (if needed)

View file

@ -5209,7 +5209,7 @@ void SetAnimationInternal(AActor * self, FName animName, double framerate, int s
animationData = animation->AttachAnimationData();
}
self->modelData->prevAnim = animation->PrecalculateFrame(self->modelData->prevAnim, to, inter, animationData, self->boneComponentData, 0);
self->modelData->prevAnim = animation->PrecalculateFrame(self->modelData->prevAnim, to, inter, animationData);
}
else
{

View file

@ -178,7 +178,6 @@ IMPLEMENT_POINTERS_START(AActor)
IMPLEMENT_POINTER(alternative)
IMPLEMENT_POINTER(ViewPos)
IMPLEMENT_POINTER(modelData)
IMPLEMENT_POINTER(boneComponentData)
IMPLEMENT_POINTERS_END
//==========================================================================