Skip to content

Commit

Permalink
Update OBJExporter.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Fexcraft committed Sep 23, 2021
1 parent bd9994e commit e1a19cc
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/net/fexcraft/app/fmt/porters/OBJExporter.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;

import net.fexcraft.app.fmt.FMTB;
import net.fexcraft.app.fmt.porters.PorterManager.ExImPorter;
Expand Down Expand Up @@ -95,6 +96,18 @@ public String exportModel(GroupCompound compound, File file, Map<String, Setting
}
}
if(anyprog) buffer.append("\n");
boolean anyval = false;
for(Entry<String, String> entry : compound.values.entrySet()){
buffer.append("# " + entry.getKey() + ": " + entry.getValue() + "\n");
anyval = true;
}
for(Entry<String, ArrayList<String>> entry : compound.arrvalues.entrySet()){
for(String string : entry.getValue()){
buffer.append("# " + entry.getKey() + ": " + string + "\n");
}
anyval = true;
}
if(anyval) buffer.append("\n");
Axis3DL axis, axis1 = null;
if(bool){
float yaw = settings.get("rotate_y").getFloatValue();
Expand Down

0 comments on commit e1a19cc

Please sign in to comment.