mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-23 04:12:12 +00:00
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:
parent
90689ad1dc
commit
3819eb561b
2 changed files with 5 additions and 4 deletions
|
@ -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)];
|
||||
}
|
||||
|
|
|
@ -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]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue