From 51dd235622939fe5fa50b4e3f260e88ffb020716 Mon Sep 17 00:00:00 2001 From: Stephen Gold Date: Tue, 21 Nov 2023 18:23:19 -0800 Subject: [PATCH] solve issue #2121 (AnimMigrationUtils produces incorrect initial pose) --- .../src/main/java/com/jme3/anim/util/AnimMigrationUtils.java | 1 + 1 file changed, 1 insertion(+) diff --git a/jme3-core/src/main/java/com/jme3/anim/util/AnimMigrationUtils.java b/jme3-core/src/main/java/com/jme3/anim/util/AnimMigrationUtils.java index 3fc65f63a5..b8e40a2b4c 100644 --- a/jme3-core/src/main/java/com/jme3/anim/util/AnimMigrationUtils.java +++ b/jme3-core/src/main/java/com/jme3/anim/util/AnimMigrationUtils.java @@ -64,6 +64,7 @@ public void visit(Spatial spatial) { Armature armature = new Armature(joints); armature.saveBindPose(); + armature.saveInitialPose(); skeletonArmatureMap.put(skeleton, armature); List tracks = new ArrayList<>();