Ignore:
Timestamp:
Sep 7, 2012, 5:00:31 PM (8 years ago)
Author:
lolbot
Message:

fixed 23 files out of 277:

  • fixed 1270 CR characters
  • fixed 56 trailing spaces
  • fixed 5085 tabs
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/Physics/Src/EasyConstraint.cpp

    r1782 r1888  
    2222void EasyConstraint::AddToSimulation(class Simulation* current_simulation)
    2323{
    24         btDiscreteDynamicsWorld* dynamics_world = current_simulation->GetWorld();
    25         if (dynamics_world && m_typed_constraint)
    26         {
    27                 dynamics_world->addConstraint(m_typed_constraint, m_disable_a2b_collision);
    28                 current_simulation->ObjectRegistration(true, this);
    29         }
     24    btDiscreteDynamicsWorld* dynamics_world = current_simulation->GetWorld();
     25    if (dynamics_world && m_typed_constraint)
     26    {
     27        dynamics_world->addConstraint(m_typed_constraint, m_disable_a2b_collision);
     28        current_simulation->ObjectRegistration(true, this);
     29    }
    3030}
    3131
    3232void EasyConstraint::RemoveFromSimulation(class Simulation* current_simulation)
    3333{
    34         btDiscreteDynamicsWorld* dynamics_world = current_simulation->GetWorld();
    35         if (dynamics_world && m_typed_constraint)
    36         {
    37                 dynamics_world->removeConstraint(m_typed_constraint);
    38                 current_simulation->ObjectRegistration(false, this);
    39         }
     34    btDiscreteDynamicsWorld* dynamics_world = current_simulation->GetWorld();
     35    if (dynamics_world && m_typed_constraint)
     36    {
     37        dynamics_world->removeConstraint(m_typed_constraint);
     38        current_simulation->ObjectRegistration(false, this);
     39    }
    4040}
    4141
Note: See TracChangeset for help on using the changeset viewer.