Mark all stages active in the default configuration so the length gets computed correctly.
This commit is contained in:
parent
ddc60c8855
commit
98674f5917
@ -89,6 +89,7 @@ public class OpenRocketLoaderFragment extends Fragment {
|
||||
OpenRocketLoaderResult result = new OpenRocketLoaderResult();
|
||||
try {
|
||||
OpenRocketDocument rocket = rocketLoader.load(arg0[0], new DatabaseMotorFinderWithMissingMotors());
|
||||
rocket.getDefaultConfiguration().setAllStages();
|
||||
result.rocket = rocket;
|
||||
result.warnings = rocketLoader.getWarnings();
|
||||
} catch (RocketLoadException ex) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user