1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-30 03:32:36 +00:00
OpenMW/components/sceneutil/actorutil.cpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
955 B
C++
Raw Normal View History

#include "actorutil.hpp"
#include <components/settings/values.hpp>
namespace SceneUtil
{
const std::string& getActorSkeleton(bool firstPerson, bool isFemale, bool isBeast, bool isWerewolf)
{
if (!firstPerson)
{
if (isWerewolf)
return Settings::models().mWolfskin;
else if (isBeast)
return Settings::models().mBaseanimkna;
else if (isFemale)
return Settings::models().mBaseanimfemale;
else
return Settings::models().mBaseanim;
}
else
{
if (isWerewolf)
return Settings::models().mWolfskin1st;
else if (isBeast)
return Settings::models().mBaseanimkna1st;
else if (isFemale)
return Settings::models().mBaseanimfemale1st;
else
return Settings::models().mXbaseanim1st;
}
}
}