Don't assume that the map contains a pedestrian navmesh

This commit is contained in:
Michele Bianchi 2020-01-10 16:25:02 +09:00 committed by Marc Garcia Puig
parent 3f7c7d2882
commit a5e311e286
1 changed files with 4 additions and 3 deletions

View File

@ -312,9 +312,10 @@ def build_binary_for_navigation(package_name, dirname, maps):
os.makedirs(nav_folder_target)
nav_path_source = os.path.join(folder, "%s.bin" % target_name)
nav_path_target = os.path.join(nav_folder_target, "%s.bin" % target_name)
print('Copying "' + nav_path_source + '" to "' + nav_path_target + '"')
shutil.copy2(nav_path_source, nav_path_target)
if (os.path.exists(nav_path_source)):
nav_path_target = os.path.join(nav_folder_target, "%s.bin" % target_name)
print('Copying "' + nav_path_source + '" to "' + nav_path_target + '"')
shutil.copy2(nav_path_source, nav_path_target)
# remove files
os.remove(fbx_path_target)