| 166 | //----------------------------------------------------------------------------- |
| 167 | |
| 168 | void AssetBase::setAssetAutoUnload(const bool autoUnload) |
| 169 | { |
| 170 | // Ignore no change. |
| 171 | if (mpAssetDefinition->mAssetAutoUnload == autoUnload) |
| 172 | return; |
| 173 | |
| 174 | // Update. |
| 175 | mpAssetDefinition->mAssetAutoUnload = autoUnload; |
| 176 | |
| 177 | // Refresh the asset. |
| 178 | refreshAsset(); |
| 179 | } |
| 180 | |
| 181 | //----------------------------------------------------------------------------- |
| 182 |