removed nullref mesh error in textureSwitcher