Fixed #470 View grid toggle in 3d not working

Fixed issue #470 View grid toggle in 3d not working