Fix particles view information in Editor when Game window is unused
This commit is contained in:
@@ -144,7 +144,7 @@ void GPUParticles::Execute(GPUContext* context, ParticleEmitter* emitter, Partic
|
||||
}
|
||||
|
||||
// Skip if can
|
||||
SceneRenderTask* viewTask = PARTICLE_EMITTER_GET_VIEW_TASK(effect);
|
||||
SceneRenderTask* viewTask = effect->GetRenderTask();
|
||||
const int32 threads = data.Buffer->GPU.ParticlesCountMax + data.GPU.SpawnCount;
|
||||
if (data.GPU.DeltaTime <= 0.0f || threads == 0 || !_mainCS)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user