trackeditor: check for graphic objects with duplicate name
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9194 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 82a6a1221fe64bf95dd46361c882bd0f70e9efad Former-commit-id: 17a3619718923a35607a4d00bb3a15dedcaf5c98
This commit is contained in:
parent
698bf418bf
commit
79a9b877ad
2 changed files with 15 additions and 1 deletions
|
@ -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<GraphicObject> 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)
|
||||
|
|
|
@ -34,7 +34,7 @@ public class Properties
|
|||
private static Properties instance = new Properties();
|
||||
private Vector<ActionListener> propertiesListeners = new Vector<ActionListener>();
|
||||
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;
|
||||
|
|
Loading…
Reference in a new issue