Fix view snapping to work with meshes and lines