aboutsummaryrefslogtreecommitdiff
path: root/editor/plugins/spatial_editor_plugin.cpp
diff options
context:
space:
mode:
authorRémi Verschelde2018-01-18 21:37:17 +0100
committerRémi Verschelde2018-01-18 22:01:42 +0100
commit9f479f096cb50fa8d1215e68c262f110116114ef (patch)
treef115332a8e73ab059c16b077873ca2f3faab9cb1 /editor/plugins/spatial_editor_plugin.cpp
parenta1c08b71091c47d626410406f36a4bb6fca40953 (diff)
downloadgodot-9f479f096cb50fa8d1215e68c262f110116114ef.tar.gz
godot-9f479f096cb50fa8d1215e68c262f110116114ef.tar.zst
godot-9f479f096cb50fa8d1215e68c262f110116114ef.zip
Diffstat (limited to 'editor/plugins/spatial_editor_plugin.cpp')
-rw-r--r--editor/plugins/spatial_editor_plugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/spatial_editor_plugin.cpp b/editor/plugins/spatial_editor_plugin.cpp
index e2ea85305..5e8eb0655 100644
--- a/editor/plugins/spatial_editor_plugin.cpp
+++ b/editor/plugins/spatial_editor_plugin.cpp
@@ -1589,7 +1589,7 @@ void SpatialEditorViewport::_sinput(const Ref<InputEvent> &p_event) {
float snap = spatial_editor->get_rotate_snap();
if (snap) {
- angle = Math::rad2deg(angle) + snap * 0.5; //else it wont reach +180
+ angle = Math::rad2deg(angle) + snap * 0.5; //else it won't reach +180
angle -= Math::fmod(angle, snap);
set_message(vformat(TTR("Rotating %s degrees."), rtos(angle)));
angle = Math::deg2rad(angle);