mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix skeleton name serialization
This commit is contained in:
parent
01ddb0bfba
commit
d07c8e5234
2 changed files with 2 additions and 2 deletions
|
|
@ -151,7 +151,7 @@ void Entities::loadEntity(const dv::value& map, Entity entity) {
|
|||
return;
|
||||
}
|
||||
std::string skeletonName = skeleton->config->getName();
|
||||
map.at("skeleton").get(skeletonName);
|
||||
map.at("skeleton-name").get(skeletonName);
|
||||
if (skeletonName != skeleton->config->getName()) {
|
||||
skeleton->config = assets->get<rigging::SkeletonConfig>(skeletonName);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue