feat: automatically loading models used in skeleton
This commit is contained in:
@@ -49,7 +49,7 @@ Content::Content(
|
||||
Content::~Content() {
|
||||
}
|
||||
|
||||
const rigging::SkeletonConfig* Content::getRig(const std::string& id) const {
|
||||
const rigging::SkeletonConfig* Content::getSkeleton(const std::string& id) const {
|
||||
auto found = skeletons.find(id);
|
||||
if (found == skeletons.end()) {
|
||||
return nullptr;
|
||||
@@ -80,3 +80,7 @@ const UptrsMap<std::string, BlockMaterial>& Content::getBlockMaterials() const {
|
||||
const UptrsMap<std::string, ContentPackRuntime>& Content::getPacks() const {
|
||||
return packs;
|
||||
}
|
||||
|
||||
const UptrsMap<std::string, rigging::SkeletonConfig>& Content::getSkeletons() const {
|
||||
return skeletons;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user