Fixed issue of invalid grid

Issue that the grid wouldn't be painted if no camera was selected is
fixed and some comments were added.