Fix osgAnimation for multiple creatures (#8045)

This commit is contained in:
Sam Hellawell 2024-07-14 02:31:17 +01:00
parent 6b3c47a30d
commit 03413a895f
3 changed files with 91 additions and 61 deletions

View file

@ -26,10 +26,6 @@ namespace SceneUtil
void LinkVisitor::link(osgAnimation::UpdateMatrixTransform* umt)
{
// If osgAnimation had underscores, we should update the umt name also
// otherwise the animation channel and updates wont be applied
umt->setName(Misc::StringUtils::underscoresToSpaces(umt->getName()));
const osgAnimation::ChannelList& channels = mAnimation->getChannels();
for (const auto& channel : channels)
{