refreshPreview(false);
}
public void previewSunflowExportButton_clicked() {
try {
JFileChooser chooser = new SunflowSceneFileChooser(prefs);
if (prefs.getSunflowScenePath() != null) {
try {
chooser.setCurrentDirectory(new File(prefs.getSunflowScenePath()));
}
catch (Exception ex) {
ex.printStackTrace();
}
}
if (chooser.showSaveDialog(rootTabbedPane) == JFileChooser.APPROVE_OPTION) {
File file = chooser.getSelectedFile();
exportMeshToSunflow(currPreviewMesh.getMesh(), file.getAbsolutePath());
}
}
catch (Throwable ex) {
errorHandler.handleError(ex);