1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-06-20 15:41:32 +00:00

CLEANUP(animationbindings): Lowercase all input groupnames

This commit is contained in:
Dave Corley 2024-07-23 11:39:06 -05:00
parent 6eee6e9468
commit 86f33cb6fe

View file

@ -258,9 +258,11 @@ namespace MWLua
float startPoint = options.get_or("startPoint", 0.0f);
bool forceLoop = options.get_or("forceLoop", false);
const std::string_view lowerGroup = { Misc::StringUtils::lowerCase(groupName) };
auto animation = getMutableAnimationOrThrow(ObjectVariant(object));
animation->play(groupName, priority, blendMask, autoDisable, speed, start, stop, startPoint, loops,
forceLoop || animation->isLoopingAnimation(groupName));
animation->play(lowerGroup, priority, blendMask, autoDisable, speed, start, stop, startPoint, loops,
forceLoop || animation->isLoopingAnimation(lowerGroup));
};
api["hasGroup"] = [](const sol::object& object, std::string_view groupname) -> bool {