mirror of
https://git.do.srb2.org/STJr/ZoneBuilder.git
synced 2024-11-10 06:41:49 +00:00
Fixed, Edit Selection mode, DB2 bug: in some cases "Flip Selection Horizontally" / "Flip Selection Vertically" actions were incorrectly flipping linedefs, resulting in broken sector geometry.
This commit is contained in:
parent
6a660c7d45
commit
a78c700225
2 changed files with 7 additions and 1 deletions
|
@ -1036,7 +1036,11 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
private void FlipLinedefs()
|
||||
{
|
||||
// Flip linedefs
|
||||
foreach(Linedef ld in selectedlines) ld.FlipVertices();
|
||||
foreach(Linedef ld in selectedlines)
|
||||
{
|
||||
ld.FlipVertices();
|
||||
ld.FlipSidedefs(); //mxd
|
||||
}
|
||||
|
||||
// Done
|
||||
linesflipped = !linesflipped;
|
||||
|
|
|
@ -528,6 +528,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
this.flipv.Name = "flipv";
|
||||
this.flipv.Size = new System.Drawing.Size(30, 30);
|
||||
this.flipv.TabIndex = 2;
|
||||
this.tooltip.SetToolTip(this.flipv, "Flip Selection Vertically");
|
||||
this.flipv.UseVisualStyleBackColor = true;
|
||||
this.flipv.Click += new System.EventHandler(this.flipv_Click);
|
||||
//
|
||||
|
@ -539,6 +540,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
this.fliph.Name = "fliph";
|
||||
this.fliph.Size = new System.Drawing.Size(30, 30);
|
||||
this.fliph.TabIndex = 1;
|
||||
this.tooltip.SetToolTip(this.fliph, "Flip Selection Horizontally");
|
||||
this.fliph.UseVisualStyleBackColor = true;
|
||||
this.fliph.Click += new System.EventHandler(this.fliph_Click);
|
||||
//
|
||||
|
|
Loading…
Reference in a new issue