Skip to content

[4.3-beta]Splitting a bone that is included in any skin prevents the project from being saved #949

@misaki-eymard

Description

@misaki-eymard

Description:
Splitting a bone that is included in any skin results in the following error and prevents the Spine project from being saved:

ERROR: Bone is not in skeleton: [bone]
ERROR: Bone is not in skeleton: [bone]
ERROR: Bone is not in skeleton: [bone]
ERROR: Bone is not in skeleton: [bone]
ERROR: Bone is not in skeleton: [bone]
ERROR: Bone is not in skeleton: [bone]
ERROR: Bone is not in skeleton: [bone]
ERROR: Bone is not in skeleton: [bone]
ERROR: Bone is not in skeleton: [bone]
ERROR: Unable to save project: /Users/Desktop/skin-bone.spine
Errors prevent the project from being saved.

Expanding the skin in the Tree view in this state reveals an unusual condition in which the split bones appear duplicated for unknown reasons. In the example below, the skeleton contains only four bones in addition to the root bone, yet the skin lists 13 bones:
Image

Expected behavior:
Splitting should work correctly even when a bone belongs to a skin, and the Spine project file should be saved without issues afterward.

Steps to reproduce:

  1. Create a new project in 4.3.39-beta.
  2. Create a skin.
  3. Create a bone with a length and add it to the skin created in step 2.
  4. Click the Split button and split the bone. (The values for options such as the number of resulting bones do not affect the outcome.)
  5. Attempt to save the project. An “Error saving project” dialog will appear, and the save operation will fail.
Image

The versions of Spine in which this problem was found:
4.3.00-beta to 4.3.39-beta

This issue was reported in the following thread on the forum:
https://esotericsoftware.com/forum/d/29465-ver43beta%E3%81%A7%E3%82%B9%E3%82%AD%E3%83%B3%E3%81%8C%E8%A8%AD%E5%AE%9A%E3%81%95%E3%82%8C%E3%81%A6%E3%81%84%E3%82%8B%E3%83%9C%E3%83%BC%E3%83%B3%E3%82%92%E5%88%86%E5%89%B2%E3%81%99%E3%82%8B%E3%81%A8%E3%83%97%E3%83%AD%E3%82%B8%E3%82%A7%E3%82%AF%E3%83%88%E3%81%8C%E4%BF%9D%E5%AD%98%E3%81%A7%E3%81%8D%E3%81%AA%E3%81%8F%E3%81%AA%E3%82%8B

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions