public override uint MouseUp(MouseEventArgs e, GL_ControlBase control) { TransformChangeInfos transformChangeInfos = new TransformChangeInfos(new List <TransformChangeInfo>()); uint var = 0; if (SelectionTransformAction != NoAction && SelectionTransformAction.IsApplyOnRelease()) { foreach (IEditableObject obj in GetObjects()) { obj.ApplyTransformActionToSelection(SelectionTransformAction, ref transformChangeInfos); } var |= REDRAW_PICKING | FORCE_REENTER; AddTransformToUndo(transformChangeInfos); EndUndoCollection(); SelectionTransformAction = NoAction; } else if (CurrentAction != null) { CurrentAction?.Apply(); CurrentAction = null; var |= REDRAW_PICKING; AddTransformToUndo(transformChangeInfos); } foreach (AbstractGlDrawable obj in StaticObjects) { var |= obj.MouseUp(e, control); } foreach (IEditableObject obj in GetObjects()) { var |= obj.MouseUp(e, control); } return(var); }