mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-04 03:40:14 +00:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
03a0b1fbfd
@ -612,6 +612,7 @@ namespace MWSound
|
||||
|
||||
void SoundManager::stopSound(MWBase::SoundPtr sound)
|
||||
{
|
||||
if (sound.get())
|
||||
mOutput->stopSound(sound);
|
||||
}
|
||||
|
||||
|
@ -201,6 +201,7 @@ namespace MWSound
|
||||
|
||||
virtual void stopSound(MWBase::SoundPtr sound);
|
||||
///< Stop the given sound from playing
|
||||
/// @note no-op if \a sound is null
|
||||
|
||||
virtual void stopSound3D(const MWWorld::Ptr &reference, const std::string& soundId);
|
||||
///< Stop the given object from playing the given sound,
|
||||
|
@ -3,6 +3,8 @@
|
||||
#include <osg/Transform>
|
||||
#include <osg/MatrixTransform>
|
||||
|
||||
#include <components/misc/stringops.hpp>
|
||||
|
||||
#include <iostream>
|
||||
|
||||
namespace SceneUtil
|
||||
@ -23,7 +25,7 @@ public:
|
||||
if (!bone)
|
||||
return;
|
||||
|
||||
mCache[bone->getName()] = std::make_pair(getNodePath(), bone);
|
||||
mCache[Misc::StringUtils::lowerCase(bone->getName())] = std::make_pair(getNodePath(), bone);
|
||||
|
||||
traverse(node);
|
||||
}
|
||||
@ -59,7 +61,7 @@ Bone* Skeleton::getBone(const std::string &name)
|
||||
mBoneCacheInit = true;
|
||||
}
|
||||
|
||||
BoneCache::iterator found = mBoneCache.find(name);
|
||||
BoneCache::iterator found = mBoneCache.find(Misc::StringUtils::lowerCase(name));
|
||||
if (found == mBoneCache.end())
|
||||
return NULL;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user