mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-01-18 22:41:46 +00:00
Fixed: autoaligning and limited floodfill didn't work for selection.
This commit is contained in:
parent
f4947a20be
commit
1cd255fb4e
1 changed files with 12 additions and 2 deletions
|
@ -1037,7 +1037,12 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
||||||
// Limit the alignment to selection only
|
// Limit the alignment to selection only
|
||||||
General.Map.Map.ClearMarkedSidedefs(true);
|
General.Map.Map.ClearMarkedSidedefs(true);
|
||||||
List<Sidedef> sides = mode.GetSelectedSidedefs();
|
List<Sidedef> sides = mode.GetSelectedSidedefs();
|
||||||
foreach(Sidedef sd in sides) sd.Marked = false;
|
foreach (Sidedef sd in sides)
|
||||||
|
{
|
||||||
|
sd.Marked = false;
|
||||||
|
if (sd.Other != null)
|
||||||
|
sd.Other.Marked = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//mxd. We potentially need to deal with 2 textures (because of long and short texture names)...
|
//mxd. We potentially need to deal with 2 textures (because of long and short texture names)...
|
||||||
|
@ -1107,7 +1112,12 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
||||||
// Limit the alignment to selection only
|
// Limit the alignment to selection only
|
||||||
General.Map.Map.ClearMarkedSidedefs(true);
|
General.Map.Map.ClearMarkedSidedefs(true);
|
||||||
List<Sidedef> sides = mode.GetSelectedSidedefs();
|
List<Sidedef> sides = mode.GetSelectedSidedefs();
|
||||||
foreach(Sidedef sd in sides) sd.Marked = false;
|
foreach (Sidedef sd in sides)
|
||||||
|
{
|
||||||
|
sd.Marked = false;
|
||||||
|
if (sd.Other != null)
|
||||||
|
sd.Other.Marked = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Do the alignment
|
// Do the alignment
|
||||||
|
|
Loading…
Reference in a new issue