mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-29 19:36:43 +00:00
Pass AnimPriority by const reference
This commit is contained in:
parent
660e7f5d89
commit
a33ca75742
2 changed files with 2 additions and 2 deletions
|
@ -461,7 +461,7 @@ namespace MWRender
|
||||||
mTextKeyListener->handleTextKey(groupname, key, map);
|
mTextKeyListener->handleTextKey(groupname, key, map);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Animation::play(const std::string &groupname, AnimPriority priority, int blendMask, bool autodisable, float speedmult,
|
void Animation::play(const std::string &groupname, const AnimPriority& priority, int blendMask, bool autodisable, float speedmult,
|
||||||
const std::string &start, const std::string &stop, float startpoint, size_t loops, bool loopfallback)
|
const std::string &start, const std::string &stop, float startpoint, size_t loops, bool loopfallback)
|
||||||
{
|
{
|
||||||
if(!mObjectRoot || mAnimSources.empty())
|
if(!mObjectRoot || mAnimSources.empty())
|
||||||
|
|
|
@ -353,7 +353,7 @@ public:
|
||||||
* \param loopFallback Allow looping an animation that has no loop keys, i.e. fall back to use
|
* \param loopFallback Allow looping an animation that has no loop keys, i.e. fall back to use
|
||||||
* the "start" and "stop" keys for looping?
|
* the "start" and "stop" keys for looping?
|
||||||
*/
|
*/
|
||||||
void play(const std::string &groupname, AnimPriority priority, int blendMask, bool autodisable,
|
void play(const std::string &groupname, const AnimPriority& priority, int blendMask, bool autodisable,
|
||||||
float speedmult, const std::string &start, const std::string &stop,
|
float speedmult, const std::string &start, const std::string &stop,
|
||||||
float startpoint, size_t loops, bool loopfallback=false);
|
float startpoint, size_t loops, bool loopfallback=false);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue