mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 14:44:36 +00:00
Tweaks to the Asset/Module info echo behavior to spam the console less.
This commit is contained in:
parent
e0627973fb
commit
41caeedb05
2 changed files with 4 additions and 4 deletions
|
|
@ -130,8 +130,8 @@ void AssetManager::initPersistFields()
|
||||||
// Call parent.
|
// Call parent.
|
||||||
Parent::initPersistFields();
|
Parent::initPersistFields();
|
||||||
|
|
||||||
addField( "EchoInfo", TypeBool, Offset(mEchoInfo, AssetManager), "Whether the asset manager echos extra information to the console or not." );
|
addField( "EchoInfo", TypeBool, false, Offset(mEchoInfo, AssetManager), "Whether the asset manager echos extra information to the console or not." );
|
||||||
addField( "IgnoreAutoUnload", TypeBool, Offset(mIgnoreAutoUnload, AssetManager), "Whether the asset manager should ignore unloading of auto-unload assets or not." );
|
addField( "IgnoreAutoUnload", TypeBool, true, Offset(mIgnoreAutoUnload, AssetManager), "Whether the asset manager should ignore unloading of auto-unload assets or not." );
|
||||||
}
|
}
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
@ -228,7 +228,7 @@ bool AssetManager::loadModuleAutoLoadAssets(ModuleDefinition* pModuleDefinition)
|
||||||
AssertFatal(pModuleDefinition != NULL, "Cannot auto load assets using a NULL module definition");
|
AssertFatal(pModuleDefinition != NULL, "Cannot auto load assets using a NULL module definition");
|
||||||
|
|
||||||
// Does the module have any assets associated with it?
|
// Does the module have any assets associated with it?
|
||||||
if (pModuleDefinition->getModuleAssets().empty())
|
if (pModuleDefinition->getModuleAssets().empty() && mEchoInfo)
|
||||||
{
|
{
|
||||||
// Yes, so warn.
|
// Yes, so warn.
|
||||||
Con::warnf("Asset Manager: Cannot auto load assets to module '%s' as it has no existing assets.", pModuleDefinition->getSignature());
|
Con::warnf("Asset Manager: Cannot auto load assets to module '%s' as it has no existing assets.", pModuleDefinition->getSignature());
|
||||||
|
|
|
||||||
|
|
@ -69,7 +69,7 @@ S32 QSORT_CALLBACK moduleDefinitionVersionIdSort( const void* a, const void* b )
|
||||||
|
|
||||||
ModuleManager::ModuleManager() :
|
ModuleManager::ModuleManager() :
|
||||||
mEnforceDependencies(true),
|
mEnforceDependencies(true),
|
||||||
mEchoInfo(true),
|
mEchoInfo(false),
|
||||||
mDatabaseLocks( 0 ),
|
mDatabaseLocks( 0 ),
|
||||||
mIgnoreLoadedGroups(false)
|
mIgnoreLoadedGroups(false)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue