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:
MaxED 2016-07-07 10:59:06 +00:00 committed by spherallic
parent 6a660c7d45
commit a78c700225
2 changed files with 7 additions and 1 deletions

View file

@ -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;

View file

@ -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);
//