mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-01-31 04:40:55 +00:00
@ Fixed a problem with geometry being marked on undo/redo
This commit is contained in:
parent
9d0bd09f25
commit
efb7e4a43a
1 changed files with 4 additions and 0 deletions
|
@ -856,6 +856,7 @@ namespace CodeImp.DoomBuilder.Editing
|
||||||
int index; ds.rInt(out index);
|
int index; ds.rInt(out index);
|
||||||
LogRecordInfo("PLY: Removing vertex " + index);
|
LogRecordInfo("PLY: Removing vertex " + index);
|
||||||
Vertex v = General.Map.Map.GetVertexByIndex(index);
|
Vertex v = General.Map.Map.GetVertexByIndex(index);
|
||||||
|
foreach(Linedef l in v.Linedefs) l.Marked = true;
|
||||||
v.Dispose();
|
v.Dispose();
|
||||||
geometrychanged = true;
|
geometrychanged = true;
|
||||||
}
|
}
|
||||||
|
@ -919,6 +920,8 @@ namespace CodeImp.DoomBuilder.Editing
|
||||||
int index; ds.rInt(out index);
|
int index; ds.rInt(out index);
|
||||||
LogRecordInfo("PLY: Removing linedef " + index);
|
LogRecordInfo("PLY: Removing linedef " + index);
|
||||||
Linedef l = General.Map.Map.GetLinedefByIndex(index);
|
Linedef l = General.Map.Map.GetLinedefByIndex(index);
|
||||||
|
if(l.Front != null) l.Front.Marked = true;
|
||||||
|
if(l.Back != null) l.Back.Marked = true;
|
||||||
l.Dispose();
|
l.Dispose();
|
||||||
geometrychanged = true;
|
geometrychanged = true;
|
||||||
}
|
}
|
||||||
|
@ -1081,6 +1084,7 @@ namespace CodeImp.DoomBuilder.Editing
|
||||||
int index; ds.rInt(out index);
|
int index; ds.rInt(out index);
|
||||||
LogRecordInfo("PLY: Removing sidedef " + index);
|
LogRecordInfo("PLY: Removing sidedef " + index);
|
||||||
Sidedef s = General.Map.Map.GetSidedefByIndex(index);
|
Sidedef s = General.Map.Map.GetSidedefByIndex(index);
|
||||||
|
if(s.Sector != null) s.Sector.Marked = true;
|
||||||
s.Dispose();
|
s.Dispose();
|
||||||
geometrychanged = true;
|
geometrychanged = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue