Fix mismatch between RigidBody(2D) and Body(2D)SW can_sleep defaults.
- Set Body2DSW can_sleep default to true.
- Set Body2D can_sleep default to true.
(cherry picked from commit 42a9ae7a82
)
This commit is contained in:
parent
c1cabb0bf5
commit
7e56ef1484
|
@ -791,7 +791,7 @@ BodySW::BodySW() :
|
||||||
|
|
||||||
still_time = 0;
|
still_time = 0;
|
||||||
continuous_cd = false;
|
continuous_cd = false;
|
||||||
can_sleep = false;
|
can_sleep = true;
|
||||||
fi_callback = NULL;
|
fi_callback = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -687,7 +687,7 @@ Body2DSW::Body2DSW() :
|
||||||
|
|
||||||
still_time = 0;
|
still_time = 0;
|
||||||
continuous_cd_mode = Physics2DServer::CCD_MODE_DISABLED;
|
continuous_cd_mode = Physics2DServer::CCD_MODE_DISABLED;
|
||||||
can_sleep = false;
|
can_sleep = true;
|
||||||
fi_callback = NULL;
|
fi_callback = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue