Import .obj as Terrain: vertex order was incorrect when creating sectors from a model with up axis set to Z.

This commit is contained in:
MaxED 2014-09-02 18:52:26 +00:00
parent 90689ad1dc
commit 3819eb561b
2 changed files with 5 additions and 4 deletions

View file

@ -99,7 +99,8 @@ namespace CodeImp.DoomBuilder.GZBuilder.Windows
"Error 47",
"YOU DIED",
"Thanks, Obama",
"The God Of Exceptions Demands MORE Exceptions!"
"The God Of Exceptions Demands MORE Exceptions!",
"Good. It's boring here anyway."
};
this.Text = titles[new Random().Next(0, titles.Length - 1)];
}

View file

@ -281,10 +281,10 @@ namespace CodeImp.DoomBuilder.BuilderEffects
if(verts[v1] == verts[v2] || verts[v1] == verts[v3] || verts[v2] == verts[v3]) continue;
if (axis == UpAxis.X) {
faces.Add(new Face(verts[v1], verts[v2], verts[v3]));
} else {
if (axis == UpAxis.Y) {
faces.Add(new Face(verts[v3], verts[v2], verts[v1]));
} else {
faces.Add(new Face(verts[v1], verts[v2], verts[v3]));
}
}
}