Merge pull request #1717 from raynichc/fixes/PhotoStudioSave
Fixed photo studio save indents
This commit is contained in:
commit
a0c7851ffb
@ -428,8 +428,15 @@ public class OpenRocketSaver extends RocketSaver {
|
||||
|
||||
private void savePhotoSettings(Map<String, String> p) throws IOException {
|
||||
log.debug("Saving Photo Settings");
|
||||
|
||||
writeln("<photostudio>");
|
||||
indent++;
|
||||
|
||||
for (String s : PhotoStudioSaver.getElements(p))
|
||||
writeln(s);
|
||||
|
||||
indent--;
|
||||
writeln("</photostudio>");
|
||||
}
|
||||
|
||||
|
||||
|
@ -21,8 +21,6 @@ public class PhotoStudioSaver {
|
||||
|
||||
if (photoSettings == null || photoSettings.size() == 0) return elements;
|
||||
|
||||
elements.add("<photostudio>");
|
||||
|
||||
elements.add("<roll>" + photoSettings.get("roll") + "</roll>");
|
||||
elements.add("<yaw>" + photoSettings.get("yaw") + "</yaw>");
|
||||
elements.add("<pitch>" + photoSettings.get("pitch") + "</pitch>");
|
||||
@ -55,8 +53,6 @@ public class PhotoStudioSaver {
|
||||
|
||||
elements.add("<sky>" + photoSettings.get("sky") + "</sky>");
|
||||
|
||||
elements.add("</photostudio>");
|
||||
|
||||
return elements;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user