Skip to content

Commit

Permalink
Merge branch 'main' of github.com:ignitionrobotics/ign-gazebo into jr…
Browse files Browse the repository at this point in the history
…ivero/win/fix_visibility_names
  • Loading branch information
j-rivero committed Jan 19, 2021
2 parents a33592d + d5f96fb commit 198d90a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/EntityComponentManager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1215,7 +1215,9 @@ void EntityComponentManager::SetState(
std::istringstream istr(compMsg.component());
comp->Deserialize(istr);
this->SetChanged(entity, compIter.first,
ComponentState::OneTimeChange);
_stateMsg.has_one_time_component_changes() ?
ComponentState::OneTimeChange :
ComponentState::PeriodicChange);
}
}
}
Expand Down
2 changes: 2 additions & 0 deletions src/network/NetworkManagerSecondary.cc
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,8 @@ void NetworkManagerSecondary::OnStep(
msgs::SerializedStateMap stateMsg;
if (!entities.empty())
this->dataPtr->ecm->State(stateMsg, entities);
stateMsg.set_has_one_time_component_changes(
this->dataPtr->ecm->HasOneTimeComponentChanges());

this->stepAckPub.Publish(stateMsg);

Expand Down

0 comments on commit 198d90a

Please sign in to comment.