fix skeletons behaviour in preload.json

This commit is contained in:
MihailRis 2026-04-11 13:15:30 +03:00
parent ea64560b5d
commit acff945492
2 changed files with 3 additions and 2 deletions

View file

@ -455,7 +455,8 @@ assetload::postfunc assetload::skeleton(
const std::shared_ptr<AssetCfg>& settings
) {
return [=](auto assets) {
std::string text = io::read_string(file);
auto path = paths.find(file + ".json");
std::string text = io::read_string(path);
auto skeleton = rigging::SkeletonConfig::parse(text, file, name);
for (auto& bone : skeleton->getBones()) {
std::string model = bone->model.name;