static void Commit(Event evt, Rect dragArea, ref List <Vector3> points) { var newPoint = GetPointAtPosition(s_MousePosition, dragArea); if (!newPoint.HasValue) { Cancel(evt, ref points); return; } s_CurrentPointIndex++; UpdatePoints(points, newPoint); // reset the starting position s_StartIntersection = ChiselClickSelectionManager.GetPlaneIntersection(s_MousePosition, dragArea); evt.Use(); }