diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-07-03 23:43:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-03 23:43:33 +0200 |
commit | e54c7d5715e70c4ef08b6a3f7039c2bdf2473045 (patch) | |
tree | f782dfef613af8fa5c211d7069e061e380a1f7c2 /scene | |
parent | 2036273f944084ccbe2483619d4f4b3de48a322c (diff) | |
parent | 44ecfb028d21975944b47b6496712a29f17f3848 (diff) |
Merge pull request #9457 from TwistedTwigleg/Fixed_Vector3_snap
Fixed syntax inconsistency in Vector3.snap and Vector3.snapped
Diffstat (limited to 'scene')
-rw-r--r-- | scene/3d/navigation_mesh.cpp | 4 |
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); |