mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
Fix osgAnimation for multiple creatures (#8045)
This commit is contained in:
parent
6b3c47a30d
commit
03413a895f
3 changed files with 91 additions and 61 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue