Skip to content

Commit

Permalink
Fix mismatch between RigidBody(2D) and Body(2D)SW can_sleep defaults.
Browse files Browse the repository at this point in the history
- Set Body2DSW can_sleep default to true.

- Set Body2D can_sleep default to true.
  • Loading branch information
madmiraal committed Oct 12, 2019
1 parent 74ab8be commit 42a9ae7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion servers/physics/body_sw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -794,7 +794,7 @@ BodySW::BodySW() :

still_time = 0;
continuous_cd = false;
can_sleep = false;
can_sleep = true;
fi_callback = NULL;
}

Expand Down
2 changes: 1 addition & 1 deletion servers/physics_2d/body_2d_sw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,7 @@ Body2DSW::Body2DSW() :

still_time = 0;
continuous_cd_mode = Physics2DServer::CCD_MODE_DISABLED;
can_sleep = false;
can_sleep = true;
fi_callback = NULL;
}

Expand Down

0 comments on commit 42a9ae7

Please sign in to comment.