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

Implement numeric blender-style transforms. #58389

Merged
merged 1 commit into from
Aug 11, 2023

Commits on Aug 10, 2023

  1. Implement numeric blender-style transforms.

    This allows the user to input numbers during an "instant" (blender
    style) transform operation to specify exactly how far to transform the
    object. For example:
    
    g2.5xx: Translate 2.5 units along the local x-axis
    ry-45: Rotate -45 degrees around the y-axis
    s.25Z: Scale by a factor of .25 on the xy plane
    
    Some shared code between the traslate/rotate/scale branches of update_transform
    was refactored into apply_transform so numeric transforms could reuse it.
    
    This removes any "{X,Y,Z}-Axis Transform" messages. These prevented the
    "Transforming: (x,y,z)" messages from showing, and the latter are more
    useful, as they tell you the actual units.
    
    This also rearranges finish_transform to clear _edit before updating
    the axis rendering, so an axis doesn't remain highlighted.
    
    Co-authored-by: Rémi Verschelde <[email protected]>
    rcorre and akien-mga committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    d6a83a6 View commit details
    Browse the repository at this point in the history