mirror of
https://github.com/zeldaret/botw
synced 2026-10-24 02:04:18 -04:00
ksys/res: Implement BoneParams::getBoneWeight
This commit is contained in:
@@ -103,4 +103,12 @@ bool ASSetting::BoneParams::parse(const ASParamParser::ParseArgs& args) {
|
||||
return true;
|
||||
}
|
||||
|
||||
f32 ASSetting::BoneParams::getBoneWeight(const sead::SafeString& name) const {
|
||||
for (const auto& param : mBuffer) {
|
||||
if (name == *param.mBone)
|
||||
return *param.mWeight;
|
||||
}
|
||||
return 1.0;
|
||||
}
|
||||
|
||||
} // namespace ksys::res
|
||||
|
||||
Reference in New Issue
Block a user