summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorTwistedTwigleg <beard.noah@gmail.com>2017-06-30 14:47:17 -0400
committerTwistedTwigleg <beard.noah@gmail.com>2017-07-03 16:29:03 -0400
commit44ecfb028d21975944b47b6496712a29f17f3848 (patch)
tree5d9e8259992ef8ef1690235c540a306e073a36f4 /scene
parentcb59236ce938fdf3ffe20b1f77c4f7058ddaadf1 (diff)
Fixed syntax inconsistency in Vector3.snap and Vector3.snapped
Diffstat (limited to 'scene')
-rw-r--r--scene/3d/navigation_mesh.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/3d/navigation_mesh.cpp b/scene/3d/navigation_mesh.cpp
index 82f6f665db..4c93bcfb5e 100644
--- a/scene/3d/navigation_mesh.cpp
+++ b/scene/3d/navigation_mesh.cpp
@@ -149,8 +149,8 @@ Ref<Mesh> NavigationMesh::get_debug_mesh() {
tw[tidx++] = f.vertex[j];
_EdgeKey ek;
- ek.from = f.vertex[j].snapped(CMP_EPSILON);
- ek.to = f.vertex[(j + 1) % 3].snapped(CMP_EPSILON);
+ ek.from = f.vertex[j].snapped(Vector3(CMP_EPSILON, CMP_EPSILON, CMP_EPSILON));
+ ek.to = f.vertex[(j + 1) % 3].snapped(Vector3(CMP_EPSILON, CMP_EPSILON, CMP_EPSILON));
if (ek.from < ek.to)
SWAP(ek.from, ek.to);