3D viewer: fix 3D grid artifact ( bug 1293873 )