diff options
author | Juan Linietsky <reduzio@gmail.com> | 2015-05-16 17:54:36 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2015-05-16 17:54:36 -0300 |
commit | bbe9a37f1d0bae1b26b9f53b216c29d16e76b039 (patch) | |
tree | d625c1a816767dc63f754dd681e5ba5e9b69ff16 /servers/physics_2d/body_2d_sw.h | |
parent | 8482611f8163506aba02a4556715cebbd922cf77 (diff) |
sleeping property now should work properly, fixes #1892
Diffstat (limited to 'servers/physics_2d/body_2d_sw.h')
-rw-r--r-- | servers/physics_2d/body_2d_sw.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/physics_2d/body_2d_sw.h b/servers/physics_2d/body_2d_sw.h index e34686f3ac..c86bb51f1d 100644 --- a/servers/physics_2d/body_2d_sw.h +++ b/servers/physics_2d/body_2d_sw.h @@ -203,7 +203,7 @@ public: _FORCE_INLINE_ bool is_active() const { return active; } _FORCE_INLINE_ void wakeup() { - if ((get_space() && active) || mode==Physics2DServer::BODY_MODE_STATIC || mode==Physics2DServer::BODY_MODE_KINEMATIC) + if ((!get_space()) || mode==Physics2DServer::BODY_MODE_STATIC || mode==Physics2DServer::BODY_MODE_KINEMATIC) return; set_active(true); } |