When importing from RockSim, don't complain about spill holes in

parachutes when the hole has radius 0.
This commit is contained in:
kruland2607 2013-04-14 18:44:29 -05:00
parent b157d31748
commit 8d90c8aae4

View File

@ -91,7 +91,9 @@ class ParachuteHandler extends RecoveryDeviceHandler<Parachute> {
if (RocksimCommonConstants.SPILL_HOLE_DIA.equals(element)) {
//Not supported in OpenRocket
double spillHoleRadius = Double.parseDouble(content) / RocksimCommonConstants.ROCKSIM_TO_OPENROCKET_RADIUS;
warnings.add("Parachute spill holes are not supported. Ignoring.");
if (spillHoleRadius > 0) {
warnings.add("Parachute spill holes are not supported. Ignoring.");
}
}
if (RocksimCommonConstants.SHROUD_LINE_MASS_PER_MM.equals(element)) {
shroudLineDensity = Double.parseDouble(content) / RocksimCommonConstants.ROCKSIM_TO_OPENROCKET_LINE_DENSITY;