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
Pasting textures from face cannot be undone in a single Undo #2809
Comments
I commented on discord:
|
This seems to be because mouse double click events in Qt generate the following sequence of events:
Our event recorder translates this to
|
Ideally, we would only enqueue three events:
I think this is what we did on wxWidgets. I'll have to think about it a bit, but I think we don't want to enqueue the first click of a double click at all. I don't know how to ensure that yet though. |
In the very least, we should translate the events to
And possible we could try and discard the second mouse down and up events altogether. The problem would still be that |
One solution would be to delay the processing of the first mouse click event until we know it's not a double click using a timer with a timeout longer than I think this is what the wx version actually did, but this behavior currently is broken because
|
Actually the correct fix is to just undo the last transaction when processing a double click event! |
Undoing a texture paste requires a separate Undo action per face on the brush.
Expected Behavior
Single actions such as ALT-double click can be undone with a single action of Undo.
Steps to Reproduce
The text was updated successfully, but these errors were encountered: