-
-
Notifications
You must be signed in to change notification settings - Fork 20.2k
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
AnimatedSprite2d: SpriteFrames Editor #76729
Comments
Does this happen in other cases where that type of input box is used? The one with the little arrows? Like the FPS one to the left |
changing the fps works as expected, clicking the little arrows works and holding the mouse button i can change the fps moving mouse up /down or left / right. The mouse cursor disapear while holding and became visible after releasing. I tried again the frame duration arrows and holding the mouse button, the mouse cursor disapear while moving the mouse left/right, dont need to move over the edit box and the mouse is locked on the center of the screen, if i right click its shows "add node here" |
Al in what way is it working differently? |
after releasing the mouse button, the mouse still not visible and locked on the center of the screen, i cant do anything, only alt+f4 to exit. edit: i can use keyboard shortcuts to save scene, open menus, etc, i think the mouse is only not visible. |
i tested again, if i Alt+tab or press the Windows Key, the mouse become visible but after i click on the godot it disapear again and get locked to the screen center, also holding the mouse button while clicking the arrows and moving the mouse doesnt change the frame duration like the fps. |
Duplicate of #75652 (was closed). |
It does capture the mouse which makes it invisible and centered, sounds like it might be failing to restore it properly, it should be cancelled when exiting the window thoug which it seems doesn't happen here |
This comment was marked as outdated.
This comment was marked as outdated.
@AThousandShips Not really, that's a godot/editor/plugins/sprite_frames_editor_plugin.cpp Lines 1803 to 1811 in 8c729f0
Seems like after capturing the mouse on drag start: Lines 178 to 189 in 8c729f0
it ends up not being released, for whatever reason this is not executed in this case: Lines 168 to 174 in 8c729f0
Lines 111 to 118 in 8c729f0
What's strange is it works just fine for the FPS SpinBox from the same plugin, which is setuped seemingly the same way: godot/editor/plugins/sprite_frames_editor_plugin.cpp Lines 1677 to 1685 in 8c729f0
|
Oh damn my bad, that is strange |
Yeah I replicated this bug the first time I tried, now hopefully from within the debugger... Edit: followed it through the debugger and I cannot replicate it, so weird... Will try more later, this could be quite annoying though. |
I'm able to replicate this in a debug build as long as I attach the debugger after starting, I was not able to replicate it from debugging within VS. From what I can tell it seems that the Do you guys have any ideas on how best to test this to really see what's going on or if the viewport is stealing focus away from the SpinBox? Edit: to check the status of things I added a bunch of |
This appears to be a combination of things.
I'm still digging into this, but yeah, this is not that easy of a fix. |
Well, I need to do more testing, but if I remove the call to |
Checking if the SpinBox LineEdit's are in focus, if the mouse is captured, if either SpinBox is in dragging mode all seems to prevent this issue. I think the only one we really need to check though is if either are in dragging mode (I created this function to access this in SpinBox though).
|
I looked into this again and long story short, it is actually only the |
Another trip through this issue and this is what I have discovered... Upon creation an But in Since these keys do not match, it tries to hide the plugin and when the plugin is captured it is then losing the mouse cursor, focus, and other things. Edit: It seems these keys don't match because the |
So after taking a look at it with @korypostma, this is what we have found, there is in fact two bug that results in what we see here :
|
There is a small chance that #79692 fixes this bug. It doesn't reproduced on my configuration, so I'd appreciate it if you could test with the PR applied. |
Godot version
v4.1.dev1.official [db13026]
System information
Windows 10, Compatibility Rendering Driver, GTX 1660 Ti (531.79)
Issue description
The mouse cursor disappears when i'm clicking and holding the mouse button on the little arrows in the Frame Duration option and moving the mouse over the Edit Box (with the x1 text).
Steps to reproduce
Minimal reproduction project
FrameDurationTest.zip
The text was updated successfully, but these errors were encountered: