Commit 0ecc914f authored by legoc's avatar legoc
Browse files

Simplified unselect all

parent 1b5c92e0
......@@ -2554,9 +2554,11 @@ public class EditorMenuBar extends MenuBar {
@Override
public void handle(ActionEvent event) {
System.out.println("Unselect all...");
List<Component> selectedComponents = Nomad3DEditor.getInstance().getModel().getSelection();
updateScene();
for (Component component : selectedComponents) {
component.getTreeItem().selectedProperty().set(false);
}
}
});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment