Skip to content

Commit 21d20fa

Browse files
committed
fix the duplicate parametrics
#205
1 parent b18151c commit 21d20fa

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/main/java/com/commonwealthrobotics/controls/SelectionSession.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -717,16 +717,15 @@ private void setUpControls(MeshView meshView, CSG name) {
717717
}
718718

719719
public void updateControlsDisplayOfSelected() {
720-
parametrics.getChildren().clear();
721-
timeline.updateSelected(getSelected());
722-
723720
getExecutor().submit(() -> {
724721
List<CSG> cs = getCurrentState();
725722
BowlerStudio.runLater(() -> UpdateUIControls(cs));
726723
});
727724
}
728725

729726
private void UpdateUIControls(List<CSG> cs) {
727+
parametrics.getChildren().clear();
728+
timeline.updateSelected(getSelected());
730729
TickToc.tic("Start UpdateUIControls");
731730
if (getSelected().size() > 0) {
732731
dropToWorkplane.setDisable(false);

0 commit comments

Comments
 (0)