public override bool OnMouseEvent(Editor.MouseEvent mouseEvent, MouseEventArgs mouseEventArgs) { if (mouseEvent == Editor.MouseEvent.MouseUp && this.m_painting == ToolPaint.PaintingMode.None) { if (!this.m_rampStarted) { this.m_rampStarted = Editor.RayCastTerrainFromMouse(out this.m_rampStart); } else { Vec3 vec; if (Editor.RayCastTerrainFromMouse(out vec)) { UndoManager.RecordUndo(); TerrainManipulator.Ramp(this.m_rampStart.XY, vec.XY, this.m_radius.Value, this.m_hardness.Value); UndoManager.CommitUndo(); this.m_rampStarted = false; } } } return(base.OnMouseEvent(mouseEvent, mouseEventArgs)); }