mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 08:34:40 +00:00
commit
db1e868cda
3 changed files with 9 additions and 3 deletions
|
|
@ -52,7 +52,7 @@
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
StringTableEntry ImageAsset::smNoImageAssetFallback(StringTable->insert(Con::getVariable("$Core::NoImageAssetFallback")));
|
StringTableEntry ImageAsset::smNoImageAssetFallback = NULL;
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
@ -147,6 +147,8 @@ void ImageAsset::consoleInit()
|
||||||
Con::addVariable("$Core::NoImageAssetFallback", TypeString, &smNoImageAssetFallback,
|
Con::addVariable("$Core::NoImageAssetFallback", TypeString, &smNoImageAssetFallback,
|
||||||
"The assetId of the texture to display when the requested image asset is missing.\n"
|
"The assetId of the texture to display when the requested image asset is missing.\n"
|
||||||
"@ingroup GFX\n");
|
"@ingroup GFX\n");
|
||||||
|
|
||||||
|
smNoImageAssetFallback = StringTable->insert(Con::getVariable("$Core::NoImageAssetFallback"));
|
||||||
}
|
}
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,7 @@
|
||||||
|
|
||||||
#include "T3D/assets/assetImporter.h"
|
#include "T3D/assets/assetImporter.h"
|
||||||
|
|
||||||
StringTableEntry MaterialAsset::smNoMaterialAssetFallback(StringTable->insert(Con::getVariable("$Core::NoMaterialAssetFallback")));
|
StringTableEntry MaterialAsset::smNoMaterialAssetFallback = NULL;
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
@ -145,6 +145,8 @@ void MaterialAsset::consoleInit()
|
||||||
Con::addVariable("$Core::NoMaterialAssetFallback", TypeString, &smNoMaterialAssetFallback,
|
Con::addVariable("$Core::NoMaterialAssetFallback", TypeString, &smNoMaterialAssetFallback,
|
||||||
"The assetId of the material to display when the requested material asset is missing.\n"
|
"The assetId of the material to display when the requested material asset is missing.\n"
|
||||||
"@ingroup GFX\n");
|
"@ingroup GFX\n");
|
||||||
|
|
||||||
|
smNoMaterialAssetFallback = StringTable->insert(Con::getVariable("$Core::NoMaterialAssetFallback"));
|
||||||
}
|
}
|
||||||
|
|
||||||
void MaterialAsset::initPersistFields()
|
void MaterialAsset::initPersistFields()
|
||||||
|
|
|
||||||
|
|
@ -50,7 +50,7 @@
|
||||||
#include "ts/tsLastDetail.h"
|
#include "ts/tsLastDetail.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
StringTableEntry ShapeAsset::smNoShapeAssetFallback(StringTable->insert(Con::getVariable("$Core::NoShapeAssetFallback")));
|
StringTableEntry ShapeAsset::smNoShapeAssetFallback = NULL;
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
@ -146,6 +146,8 @@ void ShapeAsset::consoleInit()
|
||||||
Con::addVariable("$Core::NoShapeAssetFallback", TypeString, &smNoShapeAssetFallback,
|
Con::addVariable("$Core::NoShapeAssetFallback", TypeString, &smNoShapeAssetFallback,
|
||||||
"The assetId of the shape to display when the requested shape asset is missing.\n"
|
"The assetId of the shape to display when the requested shape asset is missing.\n"
|
||||||
"@ingroup GFX\n");
|
"@ingroup GFX\n");
|
||||||
|
|
||||||
|
smNoShapeAssetFallback = StringTable->insert(Con::getVariable("$Core::NoShapeAssetFallback"));
|
||||||
}
|
}
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue