Merge pull request #415 from Areloch/GroundPlaneAssetify

Converts GroundPlane to utilize assets
This commit is contained in:
Brian Roberts 2020-12-19 02:35:32 -06:00 committed by GitHub
commit 7dc6fc8abf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
22 changed files with 278 additions and 129 deletions

View file

@ -2636,6 +2636,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;