Commit 597a4db8 authored by yannick legoc's avatar yannick legoc
Browse files

Display the instance number of each duplicate name

parent dcc33ebe
......@@ -382,6 +382,9 @@ public class Nomad3DEditor extends Application {
// Compute the scene hierarchies.
model.computeSceneHierarchies();
// Set the component name duplication ids.
model.setComponentNameDuplicationId();
this.root = new Group();
this.subScene = new SubScene(root, 1280, 720, true, SceneAntialiasing.BALANCED);
......
......@@ -2976,6 +2976,9 @@ public class EditorMenuBar extends MenuBar {
// It would be necessary to see how to do be able to keep the axis states in the case of reset.
Nomad3DEditor.getInstance().getModel().resetMovement();
Nomad3DEditor.getInstance().getModel().clearSelection();
// Reset the component name duplication id.
Nomad3DEditor.getInstance().getModel().setComponentNameDuplicationId();
Nomad3DEditor.getInstance().getRoot().getChildren().remove(Nomad3DEditor.getInstance().getModel().getDisplayedRoot().getSceneNode());
Nomad3DEditor.getInstance().getModel().computeSceneHierarchies(activeLod);
......
......@@ -91,7 +91,7 @@ public class HierarchyCell extends CheckBoxTreeCell<Component> {
String text = component.getName();
if (component.hasDuplicateName()) {
text += "*";
text += "*" + component.getDuplicationNameId();
}
if (component.getAxis().getController() != null) {
......
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