mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-05-31 09:01:22 +00:00
"Export to Wavefront .obj" action should work much faster now.
Things mode: selection info was not updated when selection was cleared.
This commit is contained in:
parent
871776e319
commit
ab4d8c2776
6 changed files with 40 additions and 39 deletions
|
@ -491,26 +491,26 @@ namespace CodeImp.DoomBuilder.Map
|
|||
float right = float.MinValue;
|
||||
float bottom = float.MinValue;
|
||||
|
||||
List<Vertex> processed = new List<Vertex>(); //mxd
|
||||
Dictionary<Vertex, bool> processed = new Dictionary<Vertex, bool>(); //mxd
|
||||
|
||||
//mxd. This way bbox will be created even if triangulation failed (sector with 2 or less sidedefs and 2 vertices)
|
||||
foreach (Sidedef s in sidedefs) {
|
||||
//start...
|
||||
if (!processed.Contains(s.Line.Start)) {
|
||||
if (!processed.ContainsKey(s.Line.Start)) {
|
||||
if (s.Line.Start.Position.x < left) left = s.Line.Start.Position.x;
|
||||
if (s.Line.Start.Position.x > right) right = s.Line.Start.Position.x;
|
||||
if (s.Line.Start.Position.y < top) top = s.Line.Start.Position.y;
|
||||
if (s.Line.Start.Position.y > bottom) bottom = s.Line.Start.Position.y;
|
||||
processed.Add(s.Line.Start);
|
||||
processed.Add(s.Line.Start, false);
|
||||
}
|
||||
|
||||
//end...
|
||||
if(!processed.Contains(s.Line.End)) {
|
||||
if(!processed.ContainsKey(s.Line.End)) {
|
||||
if(s.Line.End.Position.x < left) left = s.Line.End.Position.x;
|
||||
if(s.Line.End.Position.x > right) right = s.Line.End.Position.x;
|
||||
if(s.Line.End.Position.y < top) top = s.Line.End.Position.y;
|
||||
if(s.Line.End.Position.y > bottom) bottom = s.Line.End.Position.y;
|
||||
processed.Add(s.Line.End);
|
||||
processed.Add(s.Line.End, false);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue