| 129 | } |
| 130 | |
| 131 | void FoliageType::OnModelLoaded() |
| 132 | { |
| 133 | PROFILE_MEM(LevelFoliage); |
| 134 | |
| 135 | // Now it's ready |
| 136 | _isReady = 1; |
| 137 | |
| 138 | // Prepare buffer (model may be modified so we should synchronize buffer with the actual asset) |
| 139 | Entries.SetupIfInvalid(Model); |
| 140 | |
| 141 | // Inform foliage that instances may need to be updated (data caching, etc.) |
| 142 | Foliage->OnFoliageTypeModelLoaded(Index); |
| 143 | } |
| 144 | |
| 145 | void FoliageType::Serialize(SerializeStream& stream, const void* otherObj) |
| 146 | { |
nothing calls this directly
no test coverage detected