Fix regression in particles
This commit is contained in:
@@ -424,15 +424,12 @@ Asset::LoadResult ParticleSystem::load()
|
||||
Emitters[i]->WaitForLoaded();
|
||||
}
|
||||
|
||||
if (version <= 3)
|
||||
{
|
||||
// [Deprecated on 03.09.2021 expires on 03.09.2023]
|
||||
}
|
||||
else
|
||||
{
|
||||
// Load parameters overrides
|
||||
int32 overridesCount = 0;
|
||||
// Load parameters overrides
|
||||
int32 overridesCount = 0;
|
||||
if (stream.CanRead())
|
||||
stream.ReadInt32(&overridesCount);
|
||||
if (overridesCount != 0)
|
||||
{
|
||||
EmitterParameterOverrideKey key;
|
||||
Variant value;
|
||||
for (int32 i = 0; i < overridesCount; i++)
|
||||
|
||||
@@ -620,7 +620,7 @@ void DrawEmitterGPU(RenderContext& renderContext, ParticleBuffer* buffer, DrawCa
|
||||
auto emitter = buffer->Emitter;
|
||||
|
||||
// Check if need to perform any particles sorting
|
||||
if (emitter->Graph.SortModules.HasItems() && renderContext.View.Pass != DrawPass::Depth)
|
||||
if (emitter->Graph.SortModules.HasItems() && renderContext.View.Pass != DrawPass::Depth && buffer->GPU.ParticlesCountMax != 0)
|
||||
{
|
||||
PROFILE_GPU_CPU_NAMED("Sort Particles");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user