Skip to content

Commit

Permalink
Cherry pick upstream PR 1048
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoferigo committed Sep 28, 2021
1 parent d0bd800 commit f68e73f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scenario/src/plugins/Physics/Physics.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2247,7 +2247,7 @@ void PhysicsPrivate::UpdatePhysics(EntityComponentManager &_ecm,
math::AxisAlignedBox bbox =
math::eigen3::convert(bbModel->GetAxisAlignedBoundingBox());
auto state = _bbox->SetData(bbox, this->axisAlignedBoxEql) ?
ComponentState::OneTimeChange :
ComponentState::PeriodicChange :
ComponentState::NoChange;
_ecm.SetChanged(_entity, components::AxisAlignedBox::typeId, state);

Expand Down Expand Up @@ -3204,7 +3204,7 @@ void PhysicsPrivate::UpdateCollisions(EntityComponentManager &_ecm)
// Clear the last contact data
auto state = _contacts->SetData(contactsComp,
this->contactsEql) ?
ComponentState::OneTimeChange :
ComponentState::PeriodicChange :
ComponentState::NoChange;
_ecm.SetChanged(
_collEntity1, components::ContactSensorData::typeId, state);
Expand Down Expand Up @@ -3290,7 +3290,7 @@ void PhysicsPrivate::UpdateCollisions(EntityComponentManager &_ecm)

auto state = _contacts->SetData(contactsComp,
this->contactsEql) ?
ComponentState::OneTimeChange :
ComponentState::PeriodicChange :
ComponentState::NoChange;
_ecm.SetChanged(
_collEntity1, components::ContactSensorData::typeId, state);
Expand Down

0 comments on commit f68e73f

Please sign in to comment.