| 45 | } |
| 46 | |
| 47 | void SceneLightmapsData::LoadLightmaps(Array<SavedLightmapInfo>& lightmaps) |
| 48 | { |
| 49 | // Unload previous |
| 50 | UnloadLightmaps(); |
| 51 | |
| 52 | if (lightmaps.IsEmpty()) |
| 53 | return; |
| 54 | LOG(Info, "Loading {0} lightmap(s)", lightmaps.Count()); |
| 55 | |
| 56 | for (int32 i = 0; i < lightmaps.Count(); i++) |
| 57 | { |
| 58 | _lightmaps.Add(New<Lightmap>(this, i, lightmaps[i])); |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | void SceneLightmapsData::UnloadLightmaps() |
| 63 | { |
no test coverage detected