[IMaterial] Better techset mapping

This commit is contained in:
momo5502 2017-04-03 22:08:02 +02:00
parent 4d641ad567
commit 556fd8ac16

View File

@ -41,6 +41,7 @@ namespace Assets
if (asset->techniqueSet)
{
std::string techset = reader.readString();
if (!techset.empty() && techset.front() == ',') techset.erase(techset.begin());
asset->techniqueSet = Components::AssetHandler::FindAssetForZone(Game::XAssetType::ASSET_TYPE_TECHNIQUE_SET, techset.data(), builder).techniqueSet;
const char* techsetSuffix[] =
@ -57,6 +58,7 @@ namespace Assets
if(asset->techniqueSet)
{
if (asset->techniqueSet->name[0] == ',') continue;
Components::Logger::Print("Techset '%s' has been mapped to '%s'\n", techset.data(), asset->techniqueSet->name);
}
}