Fixed #12 - make sure we are in object mode before adding planes