mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +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
|
|
@ -113,7 +113,9 @@ WorldRenderer::WorldRenderer(
|
|||
content.getDefaults()["hand-skeleton"].asString()
|
||||
);
|
||||
hands = std::make_unique<HandsRenderer>(
|
||||
assets, *modelBatch, skeletons->createSkeleton("hand", &skeletonConfig)
|
||||
assets,
|
||||
*modelBatch,
|
||||
skeletons->createSkeleton("hand", skeletonConfig.shared_from_this())
|
||||
);
|
||||
shadowMapping = std::make_unique<Shadows>(level);
|
||||
debugLines = std::make_unique<DebugLinesRenderer>(level);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue