[Fix][Issue #295] Toggling (in)active stages will now trigger a change to the CG

- stage toggling was sending the wrong event type: updated to AERO | MASS | MOTOR change event.
This commit is contained in:
Daniel_M_Williams 2016-10-14 17:26:02 -04:00
parent 3e869e015b
commit c44f976a62

View File

@ -81,7 +81,7 @@ public class StageSelector extends JPanel implements StateChangeListener {
@Override @Override
public void actionPerformed(ActionEvent e) { public void actionPerformed(ActionEvent e) {
rocket.getSelectedConfiguration().toggleStage(stageNumber); rocket.getSelectedConfiguration().toggleStage(stageNumber);
rocket.fireComponentChangeEvent(ComponentChangeEvent.GRAPHIC_CHANGE); rocket.fireComponentChangeEvent(ComponentChangeEvent.AEROMASS_CHANGE | ComponentChangeEvent.MOTOR_CHANGE );
} }
} }