Prechádzať zdrojové kódy

Another minor change

Martin Edlund (Laptop) 5 rokov pred
rodič
commit
e94b04a25f

+ 5 - 3
SketchAssistant/SketchAssistantWPF/MVP_Model.cs

@@ -330,11 +330,13 @@ namespace SketchAssistantWPF
             else if (optiTrackZ > 2 * WARNING_ZONE_BOUNDARY && OptiLayer < 1)
             {
                 programPresenter.SetOverlayColor("optipoint", Brushes.Red);
-                OptiMovingBack = true; OptiLayer = 1;
+                OptiLayer = 1;
             }
-            else if(optiTrackZ <= 2 * WARNING_ZONE_BOUNDARY && optiTrackZ >= -2.2 * WARNING_ZONE_BOUNDARY && OptiLayer != 0){
+            else if(optiTrackZ <= 2 * WARNING_ZONE_BOUNDARY && optiTrackZ >= -2.2 * WARNING_ZONE_BOUNDARY){
+                if(OptiLayer > 0)
+                    OptiMovingBack = true;
                 programPresenter.SetOverlayColor("optipoint", Brushes.Green);
-
+                OptiLayer = 0;
             }
 
             currentOptiCursorPosition = correctedPoint;