mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 19:11:50 +00:00
fix: destroyed skeleton config access on skeleton reload
This commit is contained in:
parent
33db2633a2
commit
9893c09fd5
9 changed files with 35 additions and 22 deletions
|
|
@ -7,9 +7,9 @@ using namespace rigging;
|
|||
NamedSkeletons::NamedSkeletons() = default;
|
||||
|
||||
std::shared_ptr<rigging::Skeleton> NamedSkeletons::createSkeleton(
|
||||
const std::string& name, const SkeletonConfig* config
|
||||
const std::string& name, std::shared_ptr<const SkeletonConfig> config
|
||||
) {
|
||||
auto skeleton = std::make_shared<Skeleton>(config);
|
||||
auto skeleton = std::make_shared<Skeleton>(std::move(config));
|
||||
skeletons[name] = skeleton;
|
||||
return skeleton;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue