Fix minor things

This commit is contained in:
Wojtek Figat
2022-02-28 19:15:02 +01:00
parent 57e408761d
commit 6738bc8dea
2 changed files with 2 additions and 2 deletions

View File

@@ -1024,7 +1024,7 @@ void UpdateGPU(RenderTask* task, GPUContext* context)
const auto& track = particleSystem->Tracks[j]; const auto& track = particleSystem->Tracks[j];
if (track.Type != ParticleSystem::Track::Types::Emitter || track.Disabled) if (track.Type != ParticleSystem::Track::Types::Emitter || track.Disabled)
continue; continue;
const uint32 emitterIndex = track.AsEmitter.Index; const int32 emitterIndex = track.AsEmitter.Index;
ParticleEmitter* emitter = particleSystem->Emitters[emitterIndex].Get(); ParticleEmitter* emitter = particleSystem->Emitters[emitterIndex].Get();
if (!emitter || !emitter->IsLoaded() || emitter->SimulationMode != ParticlesSimulationMode::GPU || instance.Emitters.Count() <= emitterIndex) if (!emitter || !emitter->IsLoaded() || emitter->SimulationMode != ParticlesSimulationMode::GPU || instance.Emitters.Count() <= emitterIndex)
continue; continue;

View File

@@ -18,7 +18,7 @@ class FLAXENGINE_API ScriptingEvents
public: public:
/// <summary> /// <summary>
/// Global table for registered even binder methods (key is pair of type and event name, value is method that takes instance with event, object to bind and flag to bind or unbind). /// Global table for registered event binder methods (key is pair of type and event name, value is method that takes instance with event, object to bind and flag to bind or unbind).
/// </summary> /// </summary>
/// <remarks> /// <remarks>
/// Key: pair of event type, event name. /// Key: pair of event type, event name.