Merge pull request #920 from neilbalch/RockSim_Import_Dist_Fix
Fix #881, #907 issues
This commit is contained in:
commit
de10d819bc
1
.gitignore
vendored
1
.gitignore
vendored
@ -92,3 +92,4 @@ openrocket.log
|
||||
|
||||
*.snap
|
||||
prime/*
|
||||
swing/resources/datafiles/presets/system.ser
|
||||
|
@ -180,7 +180,9 @@ class FinSetHandler extends AbstractElementHandler {
|
||||
finish = RocksimFinishCode.fromCode(Integer.parseInt(content)).asOpenRocket();
|
||||
}
|
||||
if (RocksimCommonConstants.XB.equals(element)) {
|
||||
location = Double.parseDouble(content) / RocksimCommonConstants.ROCKSIM_TO_OPENROCKET_LENGTH;
|
||||
// Opposite value accounts for the different relative distance directions used
|
||||
// Issue Ref: https://github.com/openrocket/openrocket/issues/881
|
||||
location = -Double.parseDouble(content) / RocksimCommonConstants.ROCKSIM_TO_OPENROCKET_LENGTH;
|
||||
}
|
||||
if (RocksimCommonConstants.LOCATION_MODE.equals(element)) {
|
||||
axialMethod = RocksimLocationMode.fromCode(Integer.parseInt(content)).asOpenRocket();
|
||||
|
@ -95,7 +95,7 @@ public enum AxialMethod implements DistanceMethod {
|
||||
// just as a reminder:
|
||||
// public T[] getEnumConstants()
|
||||
|
||||
public static final AxialMethod[] axialOffsetMethods = { TOP, MIDDLE, BOTTOM };
|
||||
public static final AxialMethod[] axialOffsetMethods = { ABSOLUTE, TOP, MIDDLE, BOTTOM };
|
||||
|
||||
public final String description;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user