Cleanup code

#3546
This commit is contained in:
Wojtek Figat
2025-06-15 20:48:19 +02:00
parent 9464f97e16
commit 2f02ec52ed
3 changed files with 10 additions and 15 deletions

View File

@@ -440,20 +440,17 @@ bool ParticleEmitter::Save(const StringView& path)
return SaveSurface(data);
}
bool ParticleEmitter::HasShaderCode()
bool ParticleEmitter::HasShaderCode() const
{
if(SimulationMode != ParticlesSimulationMode::GPU)
{
if (SimulationMode != ParticlesSimulationMode::GPU)
return false;
}
#if COMPILE_WITH_PARTICLE_GPU_GRAPH && COMPILE_WITH_SHADER_COMPILER
if(_shaderHeader.ParticleEmitter.GraphVersion == PARTICLE_GPU_GRAPH_VERSION
#if COMPILE_WITH_PARTICLE_GPU_GRAPH && COMPILE_WITH_SHADER_COMPILER
if (_shaderHeader.ParticleEmitter.GraphVersion == PARTICLE_GPU_GRAPH_VERSION
&& HasChunk(SHADER_FILE_CHUNK_SOURCE)
&& !HasDependenciesModified())
return true;
#endif
#endif
return false;
}