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

Only show usable animators in graph #178

Closed
wants to merge 1 commit into from
Closed

Only show usable animators in graph #178

wants to merge 1 commit into from

Conversation

rodlie
Copy link
Member

@rodlie rodlie commented May 28, 2024

This is a proposed solution for issue #176.

Introduces a new "isGraphSelected" function for boxes and "prp_isParentBoxGraphSelected" for properties. This function is used by the graph to figure out which animators are usable or not, the state is controlled by the canvas. if "isGraphSelected" is false then the box should be considered removed and the animator connected to the box should be ignored, we do not remove it since that breaks undo.

Binaries: https://sourceforge.net/projects/friction/files/0.9.6-629e18e8/

Fix #176

This is a proposed solution for issue #176.

Introduces a new "isGraphSelected" function for boxes and "prp_isParentBoxGraphSelected" for properties. This function is used by the graph to figure out which animators are usable or not, the state is controlled by the canvas. if "isGraphSelected" is false then the box should be considered removed and the animator connected to the box should be ignored, we do not remove it since that breaks undo.
@rodlie rodlie added this to the 0.9.6 milestone May 28, 2024
@adambelis
Copy link

adambelis commented May 29, 2024

edit:
i still can replicate same bug . maybe i am testing wrong version ?
1b2af3b4

@rodlie
Copy link
Member Author

rodlie commented May 29, 2024

i still can replicate same bug . maybe i am testing wrong version ?

0.9.6-629e18e8

I think you are using wrong build.

@adambelis
Copy link

ok finaly rocking correct build. This fixes the problem but introduce new one. If delete object graph disperes but if you undo you can never get it back for any property of that object

@rodlie
Copy link
Member Author

rodlie commented May 29, 2024

if delete object graph disperes but if you undo you can never get it back for any property of that object

Click on the box.

@adambelis
Copy link

friction_35b9uq3Nkn.mp4

@rodlie
Copy link
Member Author

rodlie commented May 29, 2024

As said, click on the box.

Undo does not change states, so the graph does not update.

@adambelis
Copy link

I did clikec the vox it's doing nothing

@rodlie
Copy link
Member Author

rodlie commented May 29, 2024

You do not click the box (the eclipse object) in the video.

@adambelis
Copy link

When you say box you mean small grap icon next to property ? I am clicking it but you cannot see that since that but just does not work if you mean different box not sure which one :D

@rodlie
Copy link
Member Author

rodlie commented May 29, 2024

Lost in translation ;) I mean the object/box as in the circle/rectangle/path whatever.

friction-undo-graph-2024-05-29_16.02.08.mp4

@rodlie
Copy link
Member Author

rodlie commented May 29, 2024

And before you say it, yes this is not how it worked. But that's because the graph animator was never removed. The undo "update" is a different issue (that I will look into).

@adambelis
Copy link

hmm.. honesty i dislike this system now you need to enable cruvs in 3 places (two was already too much) . I think keeping bug is better then this behavior :D

@rodlie
Copy link
Member Author

rodlie commented May 29, 2024

If you delete a 'box' and undo you have to click it to get the animators back in the graph, not that hard. When I fix the undo state nothing will have changed.

@adambelis
Copy link

ah ok i misunderstood this needs to be done for all objects. in that case this is ok soluition

@rodlie rodlie removed this from the 0.9.6 milestone Jun 16, 2024
@rodlie
Copy link
Member Author

rodlie commented Jun 16, 2024

So, will delay this until the next version. It's a workaround, I would rather fix this properly.

Will keep the PR open just as a reminder (or fallback).

@rodlie
Copy link
Member Author

rodlie commented Aug 24, 2024

Will close this one. Issue #176 will be fixed when issue #177 is resolved, as they are related.

@rodlie rodlie closed this Aug 24, 2024
@rodlie rodlie deleted the graphanim branch August 28, 2024 13:05
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.

Deleting object does not delete keyframes in Graph
2 participants