feat: named bones and skeleton building

This commit is contained in:
MihailRis 2026-01-15 21:51:39 +03:00
parent 495e5fa994
commit c34cb57fb8
6 changed files with 147 additions and 15 deletions

View file

@ -32,6 +32,11 @@ Bone::Bone(
model({model, nullptr, true}) {
}
Bone& Bone::addBone(Bone&& bone) {
bones.push_back(std::make_unique<Bone>(std::move(bone)));
return *bones[bones.size() - 1];
}
void Bone::setModel(const std::string& name) {
if (model.name == name) {
return;