#ifndef OPENMW_MWCLASS_CLASSMODEL_H #define OPENMW_MWCLASS_CLASSMODEL_H #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); return {}; } } #endif