2021-07-23 01:12:36 +02:00

20 lines
420 B
C++

#include "xmodel_actions.h"
#include <cstring>
using namespace IW5;
Actions_XModel::Actions_XModel(Zone* zone)
: AssetLoadingActions(zone)
{
}
void Actions_XModel::SetModelSurfs(XModelLodInfo* lodInfo, XModelSurfs* modelSurfs) const
{
if(modelSurfs)
{
lodInfo->modelSurfs = m_zone->GetMemory()->Create<XModelSurfs>();
memcpy(lodInfo->modelSurfs, modelSurfs, sizeof(XModelSurfs));
}
}