| 130 | //----------------------------------------------------------------------------- |
| 131 | |
| 132 | void 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 | |