Skip to content

Cannot copy a skeleton [$60] #453

Open

Description

@zozorg

Synfig version & platform:
linux 1.3.4

Issue description:
When copying a skeleton and its linked splines, by copy/pasting or embedding an imported canvas, the resulting skeleton isn't linked to the splines.

  • EDIT * I just discovered "link to skeleton", which would be an OK workaround for me... But even the skeleton itself isn't copied correctly, some bones are duplicated, I don't get what happens exactly.
    Just create a skeleton with 3 bones, duplicate it, and move the bones around.

There is a $60 open bounty on this issue. Add to the bounty at Bountysource.

Activity

  1. changed the title [-]Copy of skeleton not linked[/-] [+]Cannot copy a skeleton[/+] on Nov 6, 2017
  2. morevnaproject commented on Nov 8, 2017

    @morevnaproject
    Member

    Just create a skeleton with 3 bones, duplicate it, and move the bones around.

    Yes, I see what you mean. When I duplicate skeleton layer (within the same document) it creates copy of each bone. But those copies still reference parents from old skeleton.

  3. morevnaproject commented on Nov 8, 2017

    @morevnaproject
    Member

    In general any copy operations related with bones are dangerous at the moment. For example this one - #455.

  4. zozorg commented on Nov 9, 2017

    @zozorg
    Author

    Posted a $50 bounty

  5. zozorg commented on Nov 20, 2017

    @zozorg
    Author

    +$10 bounty, total $60

  6. changed the title [-]Cannot copy a skeleton[/-] [+]Cannot copy a skeleton [$60][/+] on Mar 26, 2018
  7. src-r-r commented on Jan 9, 2020

    @src-r-r

    I'm taking a look at this issue now.

    Update 2020/1/13 I think I figured out what the issue might be. I'll be trying something.

  8. src-r-r commented on Jan 24, 2020

    @src-r-r

    I've been looking through the source. I think part of the problem is that the design of the bone/skeleton relationship is not very structured. Bones are just there: they don't belong to anything. Is this by intention?

    I did a little sleuthing with Python to investigate how bones & skeletons are structured. I'm very visual so I wanted to see how they were networked and I attached my findings below.

    Taking a cue from Blender, I propose skeletons take on a more active role, so that a user can select a skeleton, double click, and enter the skeleton group to modify the bones.

    Does this work for the design?

    Synfig Investigation.pdf

  9. rodolforg commented on Jan 24, 2020

    @rodolforg
    Contributor

    @src-r-r The possible cause of this problem is a wrong duplication of the ValueNode that build the relationships among bones themselves.
    Maybe LayerSkeleton should override Layer::clone() method to fix the bones' parenting after duplication.

  10. added a commit that references this issue on Jun 8, 2020
  11. 10 remaining items

  12. added a commit that references this issue on Mar 5, 2026
    242e652
  13. locky504 commented on Mar 5, 2026

    @locky504

    I'm working on this issue. PR #3702 submitted.

  14. edvinas1573 commented on Oct 6, 2026

    @edvinas1573

    Submitted PR #3815: #3815 . It repairs cloned bone references in both clipboard stages and the imported canvas embedding path. Original-code reproduction demonstrates the pasted follower still pointing to the source bone; the proposed change passes the complete Linux application build and all 19 CTest targets, including 11 new scenarios: https://github.com/edvinas1573/synfig/actions/runs/37433751319 . AI assistance with OpenAI Codex is disclosed in the PR. I am aware of existing PR #3702. Could the maintainer or sponsor confirm current bounty funding and eligibility? Any payout details can be arranged privately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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