fix components order & add skeleton:get_matrix overload & add skeleton:reset_pose

This commit is contained in:
MihailRis 2026-07-26 15:08:55 +03:00
parent 8a9b4a9e9c
commit 8242d299ed
3 changed files with 29 additions and 8 deletions

View file

@ -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