Added primitive editmode, *needsreview*