[IXModel] Import phys preset

This commit is contained in:
momo5502 2017-01-06 14:36:03 +01:00
parent 77858938bd
commit 1148dac0ff

View File

@ -190,8 +190,19 @@ namespace Assets
if (asset->physPreset) if (asset->physPreset)
{ {
// TODO asset->physPreset = reader.readObject<Game::PhysPreset>();
asset->physPreset = nullptr;
if (asset->physPreset->name)
{
asset->physPreset->name = reader.readCString();
}
if (asset->physPreset->sndAliasPrefix)
{
asset->physPreset->sndAliasPrefix = reader.readCString();
}
Components::AssetHandler::StoreTemporaryAsset(Game::XAssetType::ASSET_TYPE_PHYSPRESET, { asset->physPreset });
} }
if (asset->physCollmap) if (asset->physCollmap)