Adding a condition on the rendering of the mesh