aboutsummaryrefslogtreecommitdiff
path: root/editor/plugins/spatial_editor_plugin.cpp
diff options
context:
space:
mode:
authorTwistedTwigleg2017-06-30 14:47:17 -0400
committerTwistedTwigleg2017-07-03 16:29:03 -0400
commit44ecfb028d21975944b47b6496712a29f17f3848 (patch)
tree5d9e8259992ef8ef1690235c540a306e073a36f4 /editor/plugins/spatial_editor_plugin.cpp
parentcb59236ce938fdf3ffe20b1f77c4f7058ddaadf1 (diff)
downloadgodot-44ecfb028d21975944b47b6496712a29f17f3848.tar.gz
godot-44ecfb028d21975944b47b6496712a29f17f3848.tar.zst
godot-44ecfb028d21975944b47b6496712a29f17f3848.zip
Fixed syntax inconsistency in Vector3.snap and Vector3.snapped
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 c55bef1b0..995d13f6a 100644
--- a/editor/plugins/spatial_editor_plugin.cpp
+++ b/editor/plugins/spatial_editor_plugin.cpp
@@ -1180,7 +1180,7 @@ void SpatialEditorViewport::_sinput(const Ref<InputEvent> &p_event) {
if (_edit.snap || spatial_editor->is_snap_enabled()) {
snap = spatial_editor->get_translate_snap();
- motion.snap(snap);
+ motion.snap(Vector3(snap, snap, snap));
}
//set_message("Translating: "+motion);