Normand Briere
2019-08-22 6a823ffbfcda4c843f46e02e83c869d5bc323e25
SwitchNode.java
....@@ -41,7 +41,7 @@
4141 switchobject.count = 1; // hide
4242 }
4343
44
- transient boolean restarted;
44
+ //transient boolean restarted;
4545 transient int countspeed;
4646
4747 transient boolean toggleneutral;
....@@ -59,7 +59,7 @@
5959 }
6060 if (live && Globals.isLIVE() && display.DrawMode() == display.SHADOW)
6161 {
62
- if (countspeed == 0)
62
+ if (countspeed <= 0)
6363 {
6464 countspeed = speed;
6565
....@@ -92,12 +92,18 @@
9292
9393 }
9494 else
95
- countspeed--;
95
+ {
96
+ if (CameraPane.FAST)
97
+ countspeed -= CameraPane.STEP;
98
+ else
99
+ countspeed--;
100
+ }
96101 }
97102
98103 if (bRep == null)
99104 {
100
- bRep = (BoundaryRep) Grafreed.clone(switchobject.get(0).bRep);
105
+ // The switch mesh will be used to interpolate poaes (maybe).
106
+ bRep = (BoundaryRep)Grafreed.clone(switchobject.get(0).bRep);
101107 }
102108
103109 if (CameraPane.SUPPORT && display.DrawMode() == display.SHADOW)