-
Notifications
You must be signed in to change notification settings - Fork 19
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
Conversation
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.
edit: |
0.9.6-629e18e8 I think you are using wrong build. |
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 |
Click on the box. |
friction_35b9uq3Nkn.mp4 |
As said, click on the box. Undo does not change states, so the graph does not update. |
I did clikec the vox it's doing nothing |
You do not click the box (the eclipse object) in the video. |
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 |
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 |
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). |
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 |
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. |
ah ok i misunderstood this needs to be done for all objects. in that case this is ok soluition |
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). |
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