Skip to content

Commit ebd7f7f

Browse files
authored
Merge pull request #668 from osrf/jessica/wind_plugin_port
fix wind plugin pause
2 parents eb3b7e1 + e3acf52 commit ebd7f7f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

vrx_gz/src/USVWind.cc

+2-1
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,8 @@ void USVWind::PreUpdate(
259259
sim::EntityComponentManager &_ecm)
260260
{
261261
GZ_PROFILE("USVWind::PreUpdate");
262-
262+
if (_info.paused)
263+
return;
263264
auto time = std::chrono::duration<double>(_info.simTime);
264265
if (this->dataPtr->previousTime == std::chrono::duration<double>(0))
265266
{

0 commit comments

Comments
 (0)