From 51b2f7a03fe6442a54002c8fa1344e1e7253fae3 Mon Sep 17 00:00:00 2001 From: JoePfeiffer Date: Tue, 5 May 2020 10:37:22 -0600 Subject: [PATCH] cp.weight doesn't have any obvious relationahip to mass. We may want to revisit the idea of having a separate minimum cp.weight, but for the moment just making it be MathUtil.EPSILON removes the confusion and doesn't change behavior (MassCalculator.MIN_MASS is set to MathUtil.EPSILON in that class) --- swing/src/net/sf/openrocket/gui/scalefigure/RocketPanel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swing/src/net/sf/openrocket/gui/scalefigure/RocketPanel.java b/swing/src/net/sf/openrocket/gui/scalefigure/RocketPanel.java index ca06de076..ff9f377ea 100644 --- a/swing/src/net/sf/openrocket/gui/scalefigure/RocketPanel.java +++ b/swing/src/net/sf/openrocket/gui/scalefigure/RocketPanel.java @@ -592,7 +592,7 @@ public class RocketPanel extends JPanel implements TreeSelectionListener, Change cg = MassCalculator.calculateLaunch( curConfig).getCM(); - if (cp.weight > MassCalculator.MIN_MASS){ + if (cp.weight > MathUtil.EPSILON){ cpx = cp.x; }else{ cpx = Double.NaN;