From 1148dac0ff24129112623adee486724d896e75fc Mon Sep 17 00:00:00 2001 From: momo5502 Date: Fri, 6 Jan 2017 14:36:03 +0100 Subject: [PATCH] [IXModel] Import phys preset --- .../Modules/AssetInterfaces/IXModel.cpp | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/Components/Modules/AssetInterfaces/IXModel.cpp b/src/Components/Modules/AssetInterfaces/IXModel.cpp index b18237df..cb89128b 100644 --- a/src/Components/Modules/AssetInterfaces/IXModel.cpp +++ b/src/Components/Modules/AssetInterfaces/IXModel.cpp @@ -190,8 +190,19 @@ namespace Assets if (asset->physPreset) { - // TODO - asset->physPreset = nullptr; + asset->physPreset = reader.readObject(); + + 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)