#include "creatureanimation.hpp" #include "renderconst.hpp" #include "../mwbase/world.hpp" namespace MWRender { CreatureAnimation::~CreatureAnimation() { } CreatureAnimation::CreatureAnimation(const MWWorld::Ptr &ptr) : Animation(ptr) { MWWorld::LiveCellRef *ref = mPtr.get(); assert (ref->mBase != NULL); if(!ref->mBase->mModel.empty()) { std::string model = "meshes\\"+ref->mBase->mModel; setObjectRoot(mPtr.getRefData().getBaseNode(), model, false); setRenderProperties(mObjectRoot, RV_Actors, RQG_Main, RQG_Alpha); } } }