MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / setAssetDescription

Method setAssetDescription

Engine/source/assets/assetBase.cpp:132–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130//-----------------------------------------------------------------------------
131
132void AssetBase::setAssetDescription(const char* pAssetDescription)
133{
134 // Fetch asset description.
135 StringTableEntry assetDescription = StringTable->insert(pAssetDescription);
136
137 // Ignore no change.
138 if (mpAssetDefinition->mAssetDescription == assetDescription)
139 return;
140
141 // Update.
142 mpAssetDefinition->mAssetDescription = assetDescription;
143
144 // Refresh the asset.
145 refreshAsset();
146}
147
148//-----------------------------------------------------------------------------
149

Callers 1

copyToMethod · 0.45

Calls 1

insertMethod · 0.45

Tested by

no test coverage detected