diff options
author | reduz <juan@okamstudio.com> | 2015-10-16 19:13:09 -0300 |
---|---|---|
committer | reduz <juan@okamstudio.com> | 2015-10-16 19:13:09 -0300 |
commit | 17a90ddc0824bb51b5ea707f5d4d11aed301f91d (patch) | |
tree | f17a5e3c66e1aaee0cabe2f16d16611b97bda6cb /scene/3d | |
parent | 078a474135b47adb3cbdf414c737b77ee17fe596 (diff) | |
parent | 79e5ced7e668fa53567ac6aaf5a26393cea6c9a2 (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.cpp | 2 |
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; |