Merge pull request #300 from eyethereal/fix-obj-exporter-vertex-references

Fixed vertex reference output format in face element for OBJ exporter
This commit is contained in:
Alexander Gessler
2014-06-21 18:55:51 +02:00

View File

@@ -245,11 +245,8 @@ void ObjExporter :: WriteGeometryFile()
if (fv.vt) {
mOutput << fv.vt;
}
if (f.kind == 'f') {
mOutput << '/';
if (fv.vn) {
mOutput << fv.vn;
}
if (f.kind == 'f' && fv.vn) {
mOutput << '/' << fv.vn;
}
}
}