Minor tweaks

This commit is contained in:
Wojtek Figat
2025-11-13 23:05:13 +01:00
parent 636a1ff930
commit e9070b30a0
2 changed files with 2 additions and 1 deletions

View File

@@ -700,6 +700,7 @@ Asset* Content::GetAsset(const StringView& outputPath)
{
if (outputPath.IsEmpty())
return nullptr;
PROFILE_CPU();
ScopeLock lock(AssetsLocker);
for (auto i = Assets.Begin(); i.IsNotEnd(); ++i)
{

View File

@@ -156,7 +156,7 @@ void ParticleSystemInstance::Sync(ParticleSystem* system)
if (GPUParticlesCountReadback)
GPUParticlesCountReadback->ReleaseGPU();
}
ASSERT(Emitters.Count() == system->Emitters.Count());
CHECK(Emitters.Count() == system->Emitters.Count());
}
bool ParticleSystemInstance::ContainsEmitter(ParticleEmitter* emitter) const