Skip to content
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

Universal Operation Scale doesn't respect ImGuizmo::IsOver() #309

Open
trrriple opened this issue Aug 13, 2023 · 0 comments
Open

Universal Operation Scale doesn't respect ImGuizmo::IsOver() #309

trrriple opened this issue Aug 13, 2023 · 0 comments

Comments

@trrriple
Copy link

Hopefully this demonstrates the problem I'm seeing. When using universal operation, the scale orbs(?) don't seem to properly work with isOver. Notice how when using other operations, currently selected entity stays selected, but when using the universal scale, it let's me click through it. Note this also demonstrates some peculiar behavior with universal scaling in general.

imGuizmoUniversalBug.mp4

Fundamentally my code looks like this:

if (ImGui::IsMouseClicked(0) && !ImGuizmo::IsOver())
{
    uint32_t framebufPosInPixX = mousePosInViewportPix.x;
    uint32_t framebufPosInPixY
        = m_viewportSize.y - mousePosInViewportPix.y;

    mp_pixelRequest->updateRequest(
        1, framebufPosInPixX, framebufPosInPixY);

    p_screenBuffer->requestPixel(mp_pixelRequest);
    m_requestedPixelVal = true;
}

where I use the result of requestPixel to update my selected entity.

Thank you for all your hard work on this tool, it is incredible!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant