mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix components order & add skeleton:get_matrix overload & add skeleton:reset_pose
This commit is contained in:
parent
8a9b4a9e9c
commit
8242d299ed
3 changed files with 29 additions and 8 deletions
|
|
@ -37,6 +37,11 @@ static inline const std::string STDCOMP = "stdcomp";
|
|||
lua::setfield(L, name);
|
||||
lua::pop(L);
|
||||
}
|
||||
if (lua::getfield(L, "ordered_components")) {
|
||||
lua::pushenv(L, id);
|
||||
lua::rawseti(L, lua::objlen(L, -2) + 1);
|
||||
lua::pop(L);
|
||||
}
|
||||
lua::pop(L);
|
||||
|
||||
return std::shared_ptr<int>(new int(id), [=](int* id) { //-V508
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue