mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-02 20:28:37 +08:00
Fix the world path being corrupting when spawning none-default world
This fixes a bug, where the world file path was being corrupted when using non-default world paths
This commit is contained in:
+1
-1
@@ -112,7 +112,7 @@ elif [ "$program" == "gazebo" ] && [ ! -n "$no_sim" ]; then
|
|||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
#Spawn empty world if world with model name doesn't exist
|
#Spawn empty world if world with model name doesn't exist
|
||||||
world_path= $verbose "${src_path}/Tools/sitl_gazebo/worlds/${world}.world"
|
world_path="${src_path}/Tools/sitl_gazebo/worlds/${world}.world"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if [ -f ${src_path}/Tools/sitl_gazebo/worlds/${PX4_SITL_WORLD}.world ]; then
|
if [ -f ${src_path}/Tools/sitl_gazebo/worlds/${PX4_SITL_WORLD}.world ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user