1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-01 03:21:41 +00:00

Prefer the earliest eponymous nodes in skeletons (bug #3842)

This commit is contained in:
Alexei Dobrohotov 2023-02-23 13:25:01 +03:00
parent a2d8390713
commit 0f222d270e
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
0.49.0
------
Bug #3842: Body part skeletons override the main skeleton
Bug #4127: Weapon animation looks choppy
Bug #4204: Dead slaughterfish doesn't float to water surface after loading saved game
Bug #4610: Casting a Bound Weapon spell cancels the casting animation by equipping the weapon prematurely

View File

@ -23,7 +23,7 @@ namespace SceneUtil
void apply(osg::MatrixTransform& node) override
{
mPath.push_back(&node);
mCache[Misc::StringUtils::lowerCase(node.getName())] = mPath;
mCache.emplace(Misc::StringUtils::lowerCase(node.getName()), mPath);
traverse(node);
mPath.pop_back();
}