-
Notifications
You must be signed in to change notification settings - Fork 233
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
Diagonal arrow fix + bump GLFW, ImGui #252
Conversation
Bump GLFW (dll-release) to 3fa2360720eeba1964df3c0ecf4b5df8648a8e52. Bump ImGui (docking) to 8566fec661801a026e56f06cd53f5dac25c2595b. Fix diagonal arrows not showing up by bumping GLFW and ImGui. Changes were made due to ImGui internal changes: - ForceHover was removed from `ImGui::PlotLines(...)` and `ImGui::PlotHistogram(...)`. - Flags were removed from buttons (to disable here), replaced by `ImGui::BeginDisabled()` and `ImGui::EndDisabled`. - `SetNextTreeNodeOpen()` was replaced by `SetNextItemOpen()`. - `ImGuiCol_ModalWindowDarkening` was replaced by `ImGuiCol_ModalWindowDimBg`. New bug introduced. The first right click (for looking in the editor view) will keep updating the camera even after releasing the mouse button. Doing it a second time fix it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After some testing it looks like I can't right click anymore, the mouse now disappears while right clicking in any panel (Hierarchy, Inspector...), just like when right clicking in the scene view.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have been able to fix the new issue where the camera updating even after releasing the mouse button by calling the method UpdateMouseState();
outside and before the m_view.IsHovered()
statement. However this is not an acceptable fix we certainly miss something with the ImGui change from the update.
I think the right mouse cursor is disapearing because of : Overload/Sources/Overload/OvEditor/src/OvEditor/Core/CameraController.cpp Lines 381 to 392 in 7aca41d
I think we might have to change a few things in our current logic ?
which might create problems with the new ImGui version due to : Overload/Sources/Overload/OvUI/src/OvUI/ImGui/imgui_impl_glfw.cpp Lines 332 to 335 in 7aca41d
and https://github.com/adriengivry/Overload/blob/7aca41d80a1a26c35e3694d39a25d066b6f7eadc/Sources/Overload/OvUI/src/OvUI/ImGui/imgui.cpp#L4835-L4842 |
Just noticed that this PR also breaks the mouse wheel zoom |
This PR seems to be really problematic and introducing several bugs (broken right click, hovering issue, broken zoom, and potentially more).
|
I don't think closing the PR will do any good, at best it shows the PR needs rework to make everything working - meaning the current code of Overload regarding input is too simple to handle more complex and contextualized behaviors alongside the internal changes of ImGui. I've been doing some changes in local, I got way more promising results which works almost as good as before (really tiny bugs due to how the logic works currently, but overall almost as good as before) but I don't have a lot of spare time to work on that PR to finish it quickly. So I think it will be ready, but give it time and tries because it will need a recent version of ImGui to fix the original issue and thus changes in the logic :) You need to know ImGui has done a complete rework of the internal input logic and behavior. |
I think there's a simpler approach that can benefit both you and the reviewers. It's important to prioritize stability and prevent regressions, like the one introduced here. A good guideline would be to break down major changes, which will make bug hunting easier in a smaller context. However, I'm also fine if you prefer to take on that responsibility. I'll be happy to thoroughly review your work once you've addressed these regressions. |
Closing this pull request, the GLFW and imGUI Bumps are going to be split and the GLFW pull request is existing #261 |
Fix #121
Bump GLFW (dll-release) to 3fa2360720eeba1964df3c0ecf4b5df8648a8e52.
Bump ImGui (docking) to 8566fec661801a026e56f06cd53f5dac25c2595b.
Fix .gitignore tracking .vcproj (no x), now ignored.
Fix diagonal arrows not showing up by bumping GLFW and ImGui.
Changes were made due to ImGui internal changes:
ImGui::PlotLines(...)
andImGui::PlotHistogram(...)
.ImGui::BeginDisabled()
andImGui::EndDisabled
.SetNextTreeNodeOpen()
was replaced bySetNextItemOpen()
.ImGuiCol_ModalWindowDarkening
was replaced byImGuiCol_ModalWindowDimBg
.New bug introduced:
The first right click (for looking in the editor view) will keep updating the camera even after releasing the mouse button. Doing it a second time fix it.