Added snapping to editor. First load is now done by lua