-
-
Notifications
You must be signed in to change notification settings - Fork 531
[#1680] Update flight config stagemap according to unique stage ID #1688
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Functions as expected, no anomalies found. One observation. . . the active stages appear more muted than the inactive stages. Is this the desired behavior? Build 1039 |
I guess that's just how your Windows systems renders toggled and untoggled buttons, should have nothing to do with this PR. |
|
Whoops, I just now noticed that a RocketComponent (so also a stage) already has a unique ID generator. Will do a refactor of my code... |
updateStageNumbers would only update direct child stages of the rocket, instead of also ParallelStages
Booster D should have stage number 4, not 3 as it was previously
|
Fixed now. While writing unit tests I also found an issue in |
|
Functions as expected, no anomalies found. Build 1048 |

This PR fixes #1680. Stages are now given a unique ID, just like flight configurations are assigned a unique ID (it's the same ID generation code). That unique ID is then used to identify stages when updating the stageMap in the flight configurations.