mirror of
https://github.com/overte-org/overte.git
synced 2025-05-28 21:38:44 +02:00
move one-liner isEnabled() to header
This commit is contained in:
parent
80d3f35b2e
commit
7a222dff1d
2 changed files with 2 additions and 5 deletions
|
@ -257,10 +257,6 @@ void DynamicCharacterController::setEnabled(bool enabled) {
|
|||
}
|
||||
}
|
||||
|
||||
bool DynamicCharacterController::isEnabled() const {
|
||||
return _enabled && _dynamicsWorld;
|
||||
}
|
||||
|
||||
void DynamicCharacterController::setDynamicsWorld(btDynamicsWorld* world) {
|
||||
if (_dynamicsWorld != world) {
|
||||
if (_dynamicsWorld) {
|
||||
|
|
|
@ -78,7 +78,8 @@ public:
|
|||
bool needsRemoval() const;
|
||||
bool needsAddition() const;
|
||||
void setEnabled(bool enabled);
|
||||
bool isEnabled() const;
|
||||
bool isEnabled() const { return _enabled && _dynamicsWorld; }
|
||||
|
||||
void setDynamicsWorld(btDynamicsWorld* world);
|
||||
|
||||
void setLocalBoundingBox(const glm::vec3& corner, const glm::vec3& scale);
|
||||
|
|
Loading…
Reference in a new issue