| 1010 | } |
| 1011 | |
| 1012 | void ModelBase::unload(bool isReloading) |
| 1013 | { |
| 1014 | // End streaming (if still active) |
| 1015 | if (_streamingTask != nullptr) |
| 1016 | { |
| 1017 | // Cancel streaming task |
| 1018 | _streamingTask->Cancel(); |
| 1019 | _streamingTask = nullptr; |
| 1020 | } |
| 1021 | |
| 1022 | // Cleanup |
| 1023 | MaterialSlots.Resize(0); |
| 1024 | _initialized = false; |
| 1025 | _loadedLODs = 0; |
| 1026 | } |