mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
feat: named bones and skeleton building
This commit is contained in:
parent
495e5fa994
commit
c34cb57fb8
6 changed files with 147 additions and 15 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue