Check material type instead

This commit is contained in:
Lars Mueller 2024-02-09 00:46:31 +01:00
parent 96e545e529
commit 69b2a3b9f1
1 changed files with 1 additions and 1 deletions

View File

@ -143,7 +143,7 @@ Particle::Particle(
void Particle::OnRegisterSceneNode()
{
if (IsVisible) {
bool solid = m_texture.tex && m_texture.tex->blendmode == ParticleParamTypes::BlendMode::clip;
bool solid = m_material.MaterialType == video::EMT_TRANSPARENT_ALPHA_CHANNEL_REF;
SceneManager->registerNodeForRendering(this,
solid ? scene::ESNRP_SOLID : scene::ESNRP_TRANSPARENT_EFFECT);
}