X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=core%2Fsrc%2Fnet%2Fsf%2Fopenrocket%2Fmotor%2FThrustCurveMotor.java;h=e795c82308f9197fb241dd01a6fdd290e40a1594;hb=d986f8cf502d63b32f57189b1c9e9825ef19dc86;hp=0781c7c88ed5cbf499cc18d58eda15355b408ced;hpb=6200d1028c54fc15a2e332e3ab6137cf6886ea3a;p=debian%2Fopenrocket diff --git a/core/src/net/sf/openrocket/motor/ThrustCurveMotor.java b/core/src/net/sf/openrocket/motor/ThrustCurveMotor.java index 0781c7c8..e795c823 100644 --- a/core/src/net/sf/openrocket/motor/ThrustCurveMotor.java +++ b/core/src/net/sf/openrocket/motor/ThrustCurveMotor.java @@ -424,6 +424,7 @@ public class ThrustCurveMotor implements Motor, Comparable { private final double unitRotationalInertia; private final double unitLongitudinalInertia; + private final Motor parentMotor; private int modID = 0; @@ -437,6 +438,12 @@ public class ThrustCurveMotor implements Motor, Comparable { stepCG = cg[0]; unitRotationalInertia = Inertia.filledCylinderRotational(getDiameter() / 2); unitLongitudinalInertia = Inertia.filledCylinderLongitudinal(getDiameter() / 2, getLength()); + parentMotor = ThrustCurveMotor.this; + } + + @Override + public Motor getParentMotor(){ + return parentMotor; } @Override