Problem statement
I'm frequently using [Import Data] to combine 2 files into one.
Both files has meshed, weight, skins set up. Some skins have bones that are using [Add to skin] function, so they are only active when the skin using those bones are active.
Everytime I imported one file into another, these skin's meshs are distorted.
It's a bit like this issue in 4.1 version
The differences happened to me in 4.2 when importing are:
- Meshes won't collapse into point as 4.1. Only distortion.
- If I remove the bones from the skin, the mesh becomes fine. If I add them back, it distorts again.
- I have skins that doesn't have any bones added to it (which means they are always active no matter the skin is active or not.) These skin's meshes are fine.
- If I bind bones to meshes and add bones to the skin but don't paint weight to those vertexs (keeping all vertexs with 100% weight as first bone in binded.) These skin's meshes are fine too.
According to my understanding, meshes that contains "weight" and "add to skin" seems to have the problem when importing. It would be great if this problem can be solved while importing data.
Repro steps:
- Prepare 2 project files. (A will be imported to B)
- Setup meshes, bind bones, add bones to skin. (In both files.)
- Export A.json.
- Import A.json into project B. Select [Import into an existing skeleton.] (Don't replace.)
- Check out the imported mesh.
My screen shots:
Project A (Exported as A,json.)
Project B with A imported. Mesh from A.json is distorted.
Editor information
Tell us your Spine Editor version.
4.2.35