EsotericSoftware / spine-editor

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

Slot order is incorrect after changing the draw order in animate mode #791

Closed misaki-eymard closed 2 months ago

misaki-eymard commented 2 months ago

Description: If the drawing order is changed while multiple slots are selected in animate mode, the slot order is incorrect. For example, suppose the slots are lined up as shown in the following image: Screenshot 2024-05-06 at 12 49 47 Select slot1 and slot2 and move over slot3. move-slots After the move, the order of slot1 and slot2 will be swapped, as shown below: Screenshot 2024-05-06 at 12 52 58

Expected behavior: The order does not change among the selected slots. In the example above, the order of slot2 up and slot1 down should be maintained after the move. Screenshot 2024-05-06 at 12 53 27

Steps to reproduce:

  1. Open the spineboy-pro.spine via the Examples section on the welcome screen.
  2. Switch to the animate mode.
  3. Select the muzzle-ring and the muzzle-ring2 slots under the Draw order section in the tree view.
  4. Drag and drop them to over the muzzle-ring4 slot. Then, you can see the muzzle-ring slot is on top and the muzzle-ring2 slot is below it.

The version of Spine in which this bug was found: Spine 4.2.19

This issue was reported on the following thread: https://esotericsoftware.com/forum/d/26117-modify-layer-order-default-order-error

NathanSweet commented 2 months ago

I don't remember which change fixed this, but I don't see it happening in 4.2.21.