Fix vertices being merged despite edge being marked as sharp