rename rig to skeleton

This commit is contained in:
MihailRis
2024-07-10 04:28:12 +03:00
parent 91230ecbeb
commit 60f4f33180
24 changed files with 187 additions and 187 deletions
+3 -3
View File
@@ -34,10 +34,10 @@ static int l_entity_despawn(lua::State* L) {
static int l_entity_set_rig(lua::State* L) {
if (auto entity = get_entity(L, 1)) {
std::string rigName = lua::require_string(L, 2);
auto rigConfig = content->getRig(rigName);
std::string skeletonName = lua::require_string(L, 2);
auto rigConfig = content->getRig(skeletonName);
if (rigConfig == nullptr) {
throw std::runtime_error("rig not found '"+rigName+"'");
throw std::runtime_error("skeleton not found '"+skeletonName+"'");
}
entity->setRig(rigConfig);
}