[IXModel] Fix lod surface pointer
This commit is contained in:
parent
ff72493ce3
commit
4c9d394958
@ -155,6 +155,8 @@ namespace Assets
|
|||||||
asset->lodInfo[i].modelSurfs = reader.readObject<Game::XModelSurfs>();
|
asset->lodInfo[i].modelSurfs = reader.readObject<Game::XModelSurfs>();
|
||||||
this->loadXModelSurfs(asset->lodInfo[i].modelSurfs, &reader);
|
this->loadXModelSurfs(asset->lodInfo[i].modelSurfs, &reader);
|
||||||
Components::AssetHandler::StoreTemporaryAsset(Game::XAssetType::ASSET_TYPE_XMODELSURFS, { asset->lodInfo[i].modelSurfs });
|
Components::AssetHandler::StoreTemporaryAsset(Game::XAssetType::ASSET_TYPE_XMODELSURFS, { asset->lodInfo[i].modelSurfs });
|
||||||
|
|
||||||
|
asset->lodInfo[i].surfs = asset->lodInfo[i].modelSurfs->surfaces;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user