Reenable calls to setMotorMount in rocksim import code.

This commit is contained in:
Kevin Ruland 2015-12-13 14:17:28 -06:00
parent 9edf111a56
commit d12f7b596f
2 changed files with 3 additions and 6 deletions

View File

@ -72,9 +72,7 @@ class BodyTubeHandler extends BaseHandler<BodyTube> {
bodyTube.setFinish(RocksimFinishCode.fromCode(Integer.parseInt(content)).asOpenRocket());
}
if (RocksimCommonConstants.IS_MOTOR_MOUNT.equals(element)) {
// silently ignore. This information is redundant now.
// TODO: remove entirely
//bodyTube.setMotorMount("1".equals(content));
bodyTube.setMotorMount("1".equals(content));
}
if (RocksimCommonConstants.ENGINE_OVERHANG.equals(element)) {
bodyTube.setMotorOverhang(Double.parseDouble(content) / RocksimCommonConstants.ROCKSIM_TO_OPENROCKET_LENGTH);
@ -102,6 +100,7 @@ class BodyTubeHandler extends BaseHandler<BodyTube> {
*
* @return BULK
*/
@Override
public Material.Type getMaterialType() {
return Material.Type.BULK;
}

View File

@ -69,9 +69,7 @@ class InnerBodyTubeHandler extends PositionDependentHandler<InnerTube> {
bodyTube.setLength(Double.parseDouble(content) / RocksimCommonConstants.ROCKSIM_TO_OPENROCKET_LENGTH);
}
if (RocksimCommonConstants.IS_MOTOR_MOUNT.equals(element)) {
// silently ignore. This information is redundant now.
// TODO: remove entirely
//bodyTube.setMotorMount("1".equals(content));
bodyTube.setMotorMount("1".equals(content));
}
if (RocksimCommonConstants.ENGINE_OVERHANG.equals(element)) {
bodyTube.setMotorOverhang(Double.parseDouble(content) / RocksimCommonConstants.ROCKSIM_TO_OPENROCKET_LENGTH);