Reintroduce the hidden line pass to resolve #3799

Has been previously removed in a29b8ee725582665a792388a4ffc433f296c78e0.