EsotericSoftware / spine-editor

Issue tracking for the Spine editor.
http://esotericsoftware.com/
29 stars 2 forks source link

If the target path is deformed during animation, the path-constrained movement is not correctly reflected in the physics during export. #838

Open misaki-eymard opened 4 hours ago

misaki-eymard commented 4 hours ago

Description: If the target path of a path constraint is deformed during animation, the movement obtained from the path constraint may not be correctly reflected in the physics constraints of the bones constrained by the path constraint when exporting. This problem occurs when exporting animations as images or videos.

Expected behavior: The physics results as seen in the viewport will also be reflected in the exported images and videos.

Steps to reproduce:

  1. Download the attached .zip file: path-constrained movement is not correctly reflected in the physics.zip
  2. Open the Spine project and play the animation. You will see the animation as shown in the following video: https://github.com/user-attachments/assets/478c4ddd-0868-4c9a-87d6-8aa163744649
  3. After checking the animation, export it as an animated GIF. The result of the export will look like this: exported-gif
  4. To confirm that this is the effect of the path being deformed, select the path and delete the deform key at frame 0. After deleting the deform key, the movement you can see in the viewport will be like this: https://github.com/user-attachments/assets/d0c4a4b8-7dac-4495-a23d-6d941d19963e
  5. Export the animation again with the same settings as Step 3. It will be the same as the one you checked in Step 4, as shown below. exported-gif2

The version of Spine in which this issue was found: 4.2.36

This problem was reported by email: FMfcgzQXJQMjxsgbdSGbdpqMjDsSKbCW

NathanSweet commented 3 hours ago

Exporting makes it more complex to reproduce. Checking Deterministic (which is similar to what export does) shows the issue more easily.