Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix crash when moving origin point of child bone in Skeleton Deformation Layer using Bone Tool #2049

Conversation

rodolforg
Copy link
Contributor

when moving a child bone with Bones tool

@rodolforg
Copy link
Contributor Author

As I said here, I still don't know what this code is for.
The commit 9664b8c that inserted this code is from PR #1698, that fix issue #1658, but the commit description and code comment are not related to the PR or to this issue the PR deals.

when moving a child bone with Bones tool
@rodolforg rodolforg force-pushed the studio-tool-bones-fix-crash-moving-skel-deform-bone-origin branch from 9f6e761 to 1fa44d6 Compare February 26, 2021 16:57
@rodolforg
Copy link
Contributor Author

(the forced push was to fix the exception class: from String to Error).

@morevnaproject
Copy link
Member

As I said here, I still don't know what this code is for.

Hi! This code is fixing this issue - #1627
Without this code we will have wrong behavior, which is demonstrated in this video - https://www.youtube.com/watch?v=dzTPdNbqS3U&feature=youtu.be ^__^

@rodolforg
Copy link
Contributor Author

Hi! This code is fixing this issue - #1627

Thank you for pointing the correct issue! :D How can I create the second bone? I can only create child bones :(
Actually, I don't know how deformation layer works (what are those bone pairs?)

@ice0 ice0 marked this pull request as draft February 28, 2021 03:56
@ice0
Copy link
Collaborator

ice0 commented Feb 28, 2021

@rodolforg, are there any more changes planned? Temporarily switched this PR to "Draft"

@rodolforg
Copy link
Contributor Author

@ice0 no because I don't understand further than I did lol

@morevnaproject
Copy link
Member

How can I create the second bone? I can only create child bones :(
Actually, I don't know how deformation layer works (what are those bone pairs?)

Hi! Here I have recorded an explanation video on how Skeleton Deformation works - https://youtu.be/T1SgaJg44ns
(I hope my explanation is okay ^__^")

@rodolforg
Copy link
Contributor Author

(I hope my explanation is okay ^__^")

It was great! It's a totally different approach of "regular" skeleton that I didn't realize what was the pair stuff :) Thank you and sorry for my ignorance here

@morevnaproject
Copy link
Member

Thank you for help! Please ask again if you need any more clarifications - I'll try to be here as possible. ^__^

@rodolforg
Copy link
Contributor Author

@morevnaproject by the way, congrats for your NGO accomplishment (I just saw your presentation! ;) )!

@morevnaproject
Copy link
Member

Thank you! It took some efforts and time. Tomorrow will go to receive all official documents on hands. Let's keep rockin'! 🎉

@rodolforg
Copy link
Contributor Author

rodolforg commented Mar 3, 2021

If something is left to do in this code slice (but not related to the bug fix) is line 206:

ValueNode_Composite::Handle comp = ValueNode_Composite::Handle::cast_dynamic(value_desc.get_parent_desc().get_parent_desc().get_value_node());

That isn't the way to check if it a Skeleton Deformation bone list parameter :/

@rodolforg rodolforg marked this pull request as ready for review July 11, 2021 18:27
@morevnaproject morevnaproject added this to Check later in Konstantin's Workspace Aug 30, 2021
@morevnaproject morevnaproject changed the title [Synfig Studio] fix crash: moving Skeleton Deform. bone origin Fix crash when moving origin point of child bone in Skeleton Deformation Layer using Bone Tool Aug 30, 2021
@morevnaproject morevnaproject merged commit 9a86ba4 into synfig:master Aug 30, 2021
@morevnaproject morevnaproject removed this from Check later in Konstantin's Workspace Oct 19, 2021
@rodolforg rodolforg deleted the studio-tool-bones-fix-crash-moving-skel-deform-bone-origin branch October 26, 2021 00:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants