#ifndef OPENMW_MWCLASS_CLASSMODEL_H #define OPENMW_MWCLASS_CLASSMODEL_H #include "../mwbase/environment.hpp" #include "../mwworld/livecellref.hpp" #include "../mwworld/ptr.hpp" #include #include #include namespace MWClass { template std::string getClassModel(const MWWorld::ConstPtr& ptr) { const MWWorld::LiveCellRef* ref = ptr.get(); if (!ref->mBase->mModel.empty()) return Misc::ResourceHelpers::correctMeshPath( ref->mBase->mModel, MWBase::Environment::get().getResourceSystem()->getVFS()); return {}; } } #endif