mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-20 16:15:43 +00:00
20 lines
420 B
C++
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));
|
|
}
|
|
}
|