forked from speed-dreams/speed-dreams-code
trackeditor: check terrain generation elevation file
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8488 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 7b3dd563cd452cbcaf721a076af18fcd00de9fc8 Former-commit-id: df79b68d82444d0ca1d7e171a6a8f5abfd28afa9
This commit is contained in:
parent
2662f0b618
commit
59269eddc6
1 changed files with 12 additions and 0 deletions
|
@ -120,6 +120,18 @@ public class CheckDialog extends JDialog
|
|||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
String elevationFile = trackData.getGraphic().getTerrainGeneration().getElevationMap();
|
||||
|
||||
if (elevationFile != null && !elevationFile.isEmpty())
|
||||
{
|
||||
File file = new File(Editor.getProperties().getPath() + sep + elevationFile);
|
||||
|
||||
if (!file.exists())
|
||||
{
|
||||
textArea.append("Terrain Generation elevation file " + elevationFile + " not found\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private File findObjectFile(String object)
|
||||
|
|
Loading…
Reference in a new issue