Skip to content

Commit e1a19cc

Browse files
committed
Update OBJExporter.java
1 parent bd9994e commit e1a19cc

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/net/fexcraft/app/fmt/porters/OBJExporter.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import java.util.HashMap;
1212
import java.util.List;
1313
import java.util.Map;
14+
import java.util.Map.Entry;
1415

1516
import net.fexcraft.app.fmt.FMTB;
1617
import net.fexcraft.app.fmt.porters.PorterManager.ExImPorter;
@@ -95,6 +96,18 @@ public String exportModel(GroupCompound compound, File file, Map<String, Setting
9596
}
9697
}
9798
if(anyprog) buffer.append("\n");
99+
boolean anyval = false;
100+
for(Entry<String, String> entry : compound.values.entrySet()){
101+
buffer.append("# " + entry.getKey() + ": " + entry.getValue() + "\n");
102+
anyval = true;
103+
}
104+
for(Entry<String, ArrayList<String>> entry : compound.arrvalues.entrySet()){
105+
for(String string : entry.getValue()){
106+
buffer.append("# " + entry.getKey() + ": " + string + "\n");
107+
}
108+
anyval = true;
109+
}
110+
if(anyval) buffer.append("\n");
98111
Axis3DL axis, axis1 = null;
99112
if(bool){
100113
float yaw = settings.get("rotate_y").getFloatValue();

0 commit comments

Comments
 (0)