mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-20 07:03:46 +00:00
Fixes Settings window not being able to be brought forward over AB
Adds checkbox to mark as not showing Import Window each time Added loaded import config to import log output Fixed targeted material map slot field names Added helper function for playing a sound asset via AssetId Updated import config to have some more common suffixes Updated editor settings to have Import Window show by default Changed AB context menu from listing item as "Refresh Asset" to "Reload Asset" for improved clarity Removed unneeded duplicate editor settings window script file
This commit is contained in:
parent
8d310b8d5d
commit
97484247ae
11 changed files with 56 additions and 169 deletions
|
|
@ -2381,6 +2381,9 @@ void AssetImporter::resetImportConfig()
|
|||
Settings* importConfigs;
|
||||
if (Sim::findObject("AssetImportSettings", importConfigs))
|
||||
{
|
||||
dSprintf(importLogBuffer, sizeof(importLogBuffer), "Loading import config: %s!", defaultImportConfig.c_str());
|
||||
activityLog.push_back(importLogBuffer);
|
||||
|
||||
//Now load the editor setting-deigned config!
|
||||
activeImportConfig->loadImportConfig(importConfigs, defaultImportConfig.c_str());
|
||||
}
|
||||
|
|
@ -2798,7 +2801,7 @@ Torque::Path AssetImporter::importMaterialAsset(AssetImportObject* assetItem)
|
|||
}
|
||||
else if (imageType == ImageAsset::ImageTypes::Metalness)
|
||||
{
|
||||
mapFieldName = "MetalnessMap";
|
||||
mapFieldName = "MetalMap";
|
||||
}
|
||||
else if (imageType == ImageAsset::ImageTypes::AO)
|
||||
{
|
||||
|
|
@ -2806,7 +2809,7 @@ Torque::Path AssetImporter::importMaterialAsset(AssetImportObject* assetItem)
|
|||
}
|
||||
else if (imageType == ImageAsset::ImageTypes::Roughness)
|
||||
{
|
||||
mapFieldName = "RoughnessMap";
|
||||
mapFieldName = "RoughMap";
|
||||
}
|
||||
|
||||
assetFieldName = mapFieldName + "Asset[0]";
|
||||
|
|
@ -2874,7 +2877,7 @@ Torque::Path AssetImporter::importMaterialAsset(AssetImportObject* assetItem)
|
|||
}
|
||||
else if (imageType == ImageAsset::ImageTypes::Metalness)
|
||||
{
|
||||
mapFieldName = "MetalnessMap";
|
||||
mapFieldName = "MetalMap";
|
||||
}
|
||||
else if (imageType == ImageAsset::ImageTypes::AO)
|
||||
{
|
||||
|
|
@ -2882,7 +2885,7 @@ Torque::Path AssetImporter::importMaterialAsset(AssetImportObject* assetItem)
|
|||
}
|
||||
else if (imageType == ImageAsset::ImageTypes::Roughness)
|
||||
{
|
||||
mapFieldName = "RoughnessMap";
|
||||
mapFieldName = "RoughMap";
|
||||
hasRoughness = true;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -905,9 +905,15 @@ public:
|
|||
/// </summary>
|
||||
AssetImportConfig* getImportConfig() { return activeImportConfig; }
|
||||
|
||||
void setImportConfig(AssetImportConfig* importConfig) {
|
||||
if(importConfig != nullptr)
|
||||
void setImportConfig(AssetImportConfig* importConfig)
|
||||
{
|
||||
if (importConfig != nullptr)
|
||||
{
|
||||
dSprintf(importLogBuffer, sizeof(importLogBuffer), "Loading import config: %s!", importConfig->getName());
|
||||
activityLog.push_back(importLogBuffer);
|
||||
|
||||
activeImportConfig = importConfig;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue