Skip to content

Commit ac6951e

Browse files
committed
Revert changes
* Revert changes per Siimav, Butcher that this breaks AJE and also is unnecessary
1 parent bf684a1 commit ac6951e

File tree

3 files changed

+3
-15
lines changed

3 files changed

+3
-15
lines changed

GameData/SolverEngines/SolverEngines.version

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@
2929
"PATCH": 99,
3030
"BUILD": 0
3131
}
32-
}
32+
}

SolverEngines/AJEInlet.cs

+1-7
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ public class AJEInlet : ModuleResourceIntake, IModuleInfo
88
[KSPField(isPersistant = false, guiActive = true, guiActiveEditor = true)]
99
public float Area;
1010
[KSPField(isPersistant = false, guiActive = false)]
11-
public FloatCurve TPRCurve;
11+
public FloatCurve TPRCurve = new FloatCurve();
1212
[KSPField(isPersistant = false, guiActive = false)]
1313
public bool useTPRCurve = true;
1414
[KSPField(isPersistant = false, guiActive = false)]
@@ -61,12 +61,6 @@ virtual public void UpdateOverallTPR(Vector3 velocity, double mach)
6161
overallTPR = cosine * cosine * GetTPR(mach);
6262
}
6363

64-
public override void OnAwake()
65-
{
66-
TPRCurve = new FloatCurve();
67-
base.OnAwake();
68-
}
69-
7064
public override void OnStart(StartState state)
7165
{
7266
base.OnStart(state);

SolverEngines/EngineAnimation.cs

+1-7
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public abstract class ModuleAnimateSolverEngine<T> : PartModule where T : class,
2727
public bool useAnimCurve = false;
2828

2929
[KSPField]
30-
public FloatCurve animCurve;
30+
public FloatCurve animCurve = new FloatCurve();
3131

3232
[KSPField(isPersistant = true)]
3333
public float animationState = 0f;
@@ -44,12 +44,6 @@ public abstract class ModuleAnimateSolverEngine<T> : PartModule where T : class,
4444

4545
#region Setup
4646

47-
public override void OnAwake()
48-
{
49-
animCurve = new FloatCurve();
50-
base.OnAwake();
51-
}
52-
5347
public override void OnStart(PartModule.StartState state)
5448
{
5549
Animation[] anims = FindAnimations(animationName);

0 commit comments

Comments
 (0)