Prevent FILT being rendered as black if the only wavelengths present are invalid
This commit is contained in:
parent
7b0fdaa204
commit
4b28cdb6ba
@ -119,7 +119,7 @@ int Element_FILT::interactWavelengths(Particle* cpart, int origWl)
|
||||
//#TPT-Directive ElementHeader Element_FILT static int getWavelengths(Particle* cpart)
|
||||
int Element_FILT::getWavelengths(Particle* cpart)
|
||||
{
|
||||
if (cpart->ctype)
|
||||
if (cpart->ctype&0x3FFFFFFF)
|
||||
{
|
||||
return cpart->ctype;
|
||||
}
|
||||
|
Reference in New Issue
Block a user