fix rigidbody:is_enabled
This commit is contained in:
parent
1a246e2ae0
commit
2adfbdb192
@ -17,7 +17,7 @@ static int l_set_vel(lua::State* L) {
|
|||||||
|
|
||||||
static int l_is_enabled(lua::State* L) {
|
static int l_is_enabled(lua::State* L) {
|
||||||
if (auto entity = get_entity(L, 1)) {
|
if (auto entity = get_entity(L, 1)) {
|
||||||
lua::pushboolean(L, entity->getRigidbody().enabled);
|
return lua::pushboolean(L, entity->getRigidbody().enabled);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user