diff --git a/src/tools/trackeditor/gui/CheckDialog.java b/src/tools/trackeditor/gui/CheckDialog.java index a6f639b26..a2d1491b4 100644 --- a/src/tools/trackeditor/gui/CheckDialog.java +++ b/src/tools/trackeditor/gui/CheckDialog.java @@ -31,6 +31,7 @@ import utils.ac3d.Ac3dObject; import utils.ac3d.Ac3dSurface; import utils.circuit.Curve; import utils.circuit.EnvironmentMapping; +import utils.circuit.GraphicObject; import utils.circuit.ObjShapeObject; import utils.circuit.ObjectMap; import utils.circuit.Pits; @@ -756,6 +757,19 @@ public class CheckDialog extends JDialog } } } + + //check for graphic objects with same name + Vector graphicObjects = trackData.getGraphic().getTerrainGeneration().getGraphicObjects(); + for (int i = 0; i < graphicObjects.size() - 1; i++) + { + for (int j = i + 1; j < graphicObjects.size(); j++) + { + if (graphicObjects.get(i).getName().equals(graphicObjects.get(j).getName())) + { + textArea.append("Graphic Objects has duplicate name: " + graphicObjects.get(i).getName() + "\n"); + } + } + } } private File findObjectFile(String object) diff --git a/src/tools/trackeditor/utils/Properties.java b/src/tools/trackeditor/utils/Properties.java index 0c4b7883d..753761f1b 100644 --- a/src/tools/trackeditor/utils/Properties.java +++ b/src/tools/trackeditor/utils/Properties.java @@ -34,7 +34,7 @@ public class Properties private static Properties instance = new Properties(); private Vector propertiesListeners = new Vector(); public final String title = "sd2-trackeditor"; - public final String version = "1.3.23"; + public final String version = "1.3.24"; private String path; private double imageScale = 1;