-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Automation: points deleted while moving other points can be restored abnormally #4671
Comments
Tested. Behavior is there already in 1.1.3 |
Relates to #5157 Select, copy, and paste in automation track @BaraMGB and @cyberdevilnl were both looking into this at one point, not sure if anyone is still interested? How desirable is it to delete points while moving a point? If a point goes on top of another point, it is replaced. Is it necessary to be able to delete multiple points while moving a point, when you can just delete the points before or after the move? Edit: I created a branch for working on automation editor bugs and enhancements |
Despite creating a work-around to deleting points while dragging, using the select feature in Automation Editor (working on it), I've run into a problem of randomly disappearing points while moving other points. Edit: Turns out, the problem I'm experiencing does not call setDragValue at all, and just has a problem with replacing each point of the selection as it moves. |
Basically, It seems a solution could happen one of two ways:
Edit: Turns out, these solutions will only cancel the drag, but the point being dragged still disappears. I keep trying to get the dragging process to continue when the right mouse button is released while still holding the left mouse button. I have not been able to figure out why it cancels the drag, even after placing |
I have come up with a fix to cancel the dragging of an automation point by clicking right mouse button while dragging. Should I go ahead and create a PR for it, or do we want it to function differently? |
Here's what it looks like to me now: After
When right button is pressed and edit mode is
When right button is released...
With left mouse button down in
When left mouse button is released...
When left mouse button is pressed again... (this is when the points pop back up)
After that, when mouse is moved, left button held, and in draw mode...
When left mouse button is released again...
Seems that the whole time the left mouse button is being held, and the right mouse button is repeatedly clicked, neither |
It seems to me that deleting while dragging is difficult to encode, due to the fact that right clicking is designed for erasure and removes the dragged value along with the mapped point. I have not been able to create a workaround for this that does not involve heavy editing. Deleting points while dragging also seems not very useful to me.
It seems much more likely that a user will start dragging a point, then change their mind. I am creating a PR for this. |
Note that it's an unusual situation for ordinary users.
Steps to reproduce:
I believe
m_oldTimeMap
still contains deleted points, and those points are restored on the secondAutomationPattern::setDragValue
call.I think related UI part is also problematic. Once I press the right mouse button, the dragging stops. However,
AutomationPattern::applyDragValue
is not called in that case. It will lead to restoring deleted points fromm_oldTimeMap
.The text was updated successfully, but these errors were encountered: