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

Wrap mouse for blender-style transforms. #59467

Merged
merged 1 commit into from
Jul 12, 2023

Commits on Jul 8, 2023

  1. Wrap mouse for blender-style transforms.

    When performing a blender-style translate or scale (but not rotate),
    wrap the mouse inside the bounds of the viewport. This allows moving the
    mouse indefinitely for large translate or scale operations, and is
    consistent with how blender works.
    
    This enables global input processing during blender-style transforms, so
    we can capture and wrap mouse events outside the bounds of the viewport.
    
    Other wrapping operations use _sinput, which I assume is possible
    because a mouse button is held, so the control receives input even when
    the mouse exits the control.
    
    This does not implement wrapping for regular (gizmo-driven) transforms,
    though this could be done if desired.
    
    Fixes godotengine/godot-proposals#4255.
    rcorre committed Jul 8, 2023
    Configuration menu
    Copy the full SHA
    90bddd2 View commit details
    Browse the repository at this point in the history