forked from godotengine/godot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <rverschelde@gmail.com>
- Loading branch information
Showing
2 changed files
with
165 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters