| 110 | } |
| 111 | |
| 112 | bool ParticleEmitterFunction::LoadSurface(ParticleEmitterGraphCPU& graph, bool loadMeta) |
| 113 | { |
| 114 | if (WaitForLoaded()) |
| 115 | return true; |
| 116 | ScopeLock lock(Locker); |
| 117 | if (HasChunk(0)) |
| 118 | { |
| 119 | if (!LoadChunks(GET_CHUNK_FLAG(0))) |
| 120 | { |
| 121 | const auto surfaceChunk = GetChunk(0); |
| 122 | MemoryReadStream stream(surfaceChunk->Get(), surfaceChunk->Size()); |
| 123 | return graph.Load(&stream, loadMeta); |
| 124 | } |
| 125 | } |
| 126 | return true; |
| 127 | } |
| 128 | |
| 129 | #if USE_EDITOR |
| 130 |