| 115 | } |
| 116 | |
| 117 | void Actor::attachBodyPart(ESM::PartReferenceType type, const std::string& mesh) |
| 118 | { |
| 119 | auto sceneMgr = mData.getResourceSystem()->getSceneManager(); |
| 120 | |
| 121 | // Attach to skeleton |
| 122 | std::string boneName = ESM::getBoneName(type); |
| 123 | auto node = mNodeMap.find(boneName); |
| 124 | if (!mesh.empty() && node != mNodeMap.end()) |
| 125 | { |
| 126 | auto instance = sceneMgr->getInstance(VFS::Path::toNormalized(mesh)); |
| 127 | SceneUtil::attach(instance, mSkeleton, boneName, node->second, sceneMgr); |
| 128 | } |
| 129 | } |
| 130 | |
| 131 | std::string Actor::getBodyPartMesh(const ESM::RefId& bodyPartId) |
| 132 | { |
nothing calls this directly
no test coverage detected