diff options
| author | Hubert Jarosz | 2016-03-01 00:08:33 +0100 |
|---|---|---|
| committer | Hubert Jarosz | 2016-03-09 00:18:23 +0100 |
| commit | 7b07bcaf449ea6cf52c2ac501e48cddbe4bde035 (patch) | |
| tree | 5d5c2abcc801262b72f02f5e9c7c70a20c729e73 /scene/3d/navigation.cpp | |
| parent | bf7f9244a95962c9833e68743726fe83a00b732c (diff) | |
| download | godot-7b07bcaf449ea6cf52c2ac501e48cddbe4bde035.tar.gz godot-7b07bcaf449ea6cf52c2ac501e48cddbe4bde035.tar.zst godot-7b07bcaf449ea6cf52c2ac501e48cddbe4bde035.zip | |
Diffstat (limited to 'scene/3d/navigation.cpp')
| -rw-r--r-- | scene/3d/navigation.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/scene/3d/navigation.cpp b/scene/3d/navigation.cpp index 186f0d8e0..2b74d43ad 100644 --- a/scene/3d/navigation.cpp +++ b/scene/3d/navigation.cpp @@ -64,7 +64,11 @@ void Navigation::_navmesh_link(int p_id) { continue; } - p.center=center/plen; + p.center = center; + if( plen != 0 ) { + p.center /= plen; + } + //connect @@ -721,5 +725,3 @@ Navigation::Navigation() { last_id=1; up=Vector3(0,1,0); } - - |
