summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gdscript_rpc_callable.cpp
diff options
context:
space:
mode:
authorRyan Roden-Corrent <ryan@rcorre.net>2023-08-05 15:43:24 -0400
committerRyan Roden-Corrent <ryan@rcorre.net>2023-08-10 07:18:18 -0400
commitd6a83a6bac2e452cd00d8503507bb4b63b70bbff (patch)
tree24f9601a5e8aff9f66cfff525791122df11d4b3f /modules/gdscript/gdscript_rpc_callable.cpp
parentfaaf27f28492650cf8bfb71328ab21ab934d0dd7 (diff)
downloadredot-engine-d6a83a6bac2e452cd00d8503507bb4b63b70bbff.tar.gz
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>
Diffstat (limited to 'modules/gdscript/gdscript_rpc_callable.cpp')
0 files changed, 0 insertions, 0 deletions