Minor optimisation

Don't loop through nodes if the material is already recognised as a mesh light