editor: Add vertex snapping. Fix vertex addition.