Merge branch 'GroundPlaneAssetify' of https://github.com/Areloch/Torque3D into Preview4_0

This commit is contained in:
Areloch 2020-12-18 14:12:54 -06:00
commit 3821ddd15a
20 changed files with 276 additions and 124 deletions

View file

@ -2628,6 +2628,8 @@ Torque::Path AssetImporter::importMaterialAsset(AssetImportObject* assetItem)
newAsset->setAssetName(assetName);
newAsset->setScriptFile(scriptName.c_str());
newAsset->setDataField(StringTable->insert("originalFilePath"), nullptr, qualifiedFromFile);
newAsset->setDataField(StringTable->insert("materialDefinitionName"), nullptr, assetName);
//iterate through and write out the material maps dependencies
S32 dependencySlotId = 0;