[glfw] Switch to loader scale

This commit is contained in:
Mario Zechner 2025-09-11 01:57:33 +02:00
parent 8663dd89c7
commit 099c3ba096
2 changed files with 2 additions and 2 deletions

View File

@ -104,12 +104,11 @@ int main() {
GlTextureLoader textureLoader;
Atlas *atlas = new Atlas("data/celestial-circus-pma.atlas", &textureLoader);
SkeletonBinary binary(*atlas);
binary.setScale(0.2f);
SkeletonData *skeletonData = binary.readSkeletonDataFile("data/celestial-circus-pro.skel");
// Create a skeleton from the data
Skeleton skeleton(*skeletonData);
skeleton.setScaleX(0.2);
skeleton.setScaleY(0.2);
skeleton.setupPose();
skeleton.update(0);
skeleton.updateWorldTransform(Physics_Update);

View File

@ -205,6 +205,7 @@ void USpineSkeletonAnimationComponent::SetPlaybackTime(float InPlaybackTime, boo
if (bCallDelegates) {
BeforeUpdateWorldTransform.Broadcast(this);
}
skeleton->update(physicsTimeScale * DeltaTime);
skeleton->updateWorldTransform(Physics_Update);
if (bCallDelegates) {
AfterUpdateWorldTransform.Broadcast(this);