From 6c975e339be02b487c76024e1bef308ef07483be Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Sun, 7 Jul 2019 12:52:48 +0300 Subject: Organized brush stop. --- .../Modules/Tango.MachineStudio.Developer/ViewModels/MainViewVM.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/ViewModels') diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/ViewModels/MainViewVM.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/ViewModels/MainViewVM.cs index 3f28c2cff..8772697b6 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/ViewModels/MainViewVM.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/ViewModels/MainViewVM.cs @@ -1233,8 +1233,8 @@ namespace Tango.MachineStudio.Developer.ViewModels { LogManager.Log(String.Format("BrushStop {0} Dropped on BrushStop {1}", dragged.StopIndex, dropped.StopIndex)); - dragged.SetStopIndex(dropped.StopIndex); - dropped.SetStopIndex(dropped.StopIndex + 1); + dragged.SetStopIndexNoRaise(dropped.StopIndex); + dropped.SetStopIndexNoRaise(dropped.StopIndex + 1); ArrangeBrushStopsIndices(); } @@ -1988,7 +1988,7 @@ namespace Tango.MachineStudio.Developer.ViewModels foreach (var stop in SelectedSegment.BrushStops.OrderBy(x => x.StopIndex)) { - stop.SetStopIndex(index++); + stop.SetStopIndexNoRaise(index++); } if (SelectedSegment.BrushStops.Count > 1) -- cgit v1.3.1