summaryrefslogtreecommitdiff
path: root/scene/3d
diff options
context:
space:
mode:
authorreduz <juan@okamstudio.com>2015-10-16 19:13:09 -0300
committerreduz <juan@okamstudio.com>2015-10-16 19:13:09 -0300
commit17a90ddc0824bb51b5ea707f5d4d11aed301f91d (patch)
treef17a5e3c66e1aaee0cabe2f16d16611b97bda6cb /scene/3d
parent078a474135b47adb3cbdf414c737b77ee17fe596 (diff)
parent79e5ced7e668fa53567ac6aaf5a26393cea6c9a2 (diff)
Merge branch 'master' of https://github.com/okamstudio/godot
Conflicts: scene/resources/packed_scene.h
Diffstat (limited to 'scene/3d')
-rw-r--r--scene/3d/navigation.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/3d/navigation.cpp b/scene/3d/navigation.cpp
index bfa8add09c..ce28350be0 100644
--- a/scene/3d/navigation.cpp
+++ b/scene/3d/navigation.cpp
@@ -295,12 +295,14 @@ Vector<Vector3> Navigation::get_simple_path(const Vector3& p_start, const Vector
}
}
+
if (!begin_poly || !end_poly) {
//print_line("No Path Path");
return Vector<Vector3>(); //no path
}
+
if (begin_poly==end_poly) {
Vector<Vector3> path;