mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-27 06:02:11 +00:00
Fixed bug that caused highlighted objects to join pasted objects in the Edit Selection Mode
This commit is contained in:
parent
07b82ce082
commit
b1c23198d9
5 changed files with 45 additions and 20 deletions
|
@ -394,11 +394,16 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
// Going to EditSelectionMode?
|
||||
if(General.Editing.NewMode is EditSelectionMode)
|
||||
{
|
||||
// No selection made? But we have a highlight!
|
||||
if((General.Map.Map.GetSelectedSectors(true).Count == 0) && (highlighted != null))
|
||||
// Not pasting anything?
|
||||
EditSelectionMode editmode = (General.Editing.NewMode as EditSelectionMode);
|
||||
if(!editmode.Pasting)
|
||||
{
|
||||
// Make the highlight the selection
|
||||
SelectSector(highlighted, true, false);
|
||||
// No selection made? But we have a highlight!
|
||||
if((General.Map.Map.GetSelectedSectors(true).Count == 0) && (highlighted != null))
|
||||
{
|
||||
// Make the highlight the selection
|
||||
SelectSector(highlighted, true, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -223,11 +223,16 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
// Going to EditSelectionMode?
|
||||
if(General.Editing.NewMode is EditSelectionMode)
|
||||
{
|
||||
// No selection made? But we have a highlight!
|
||||
if((General.Map.Map.GetSelectedLinedefs(true).Count == 0) && (highlighted != null))
|
||||
// Not pasting anything?
|
||||
EditSelectionMode editmode = (General.Editing.NewMode as EditSelectionMode);
|
||||
if(!editmode.Pasting)
|
||||
{
|
||||
// Make the highlight the selection
|
||||
highlighted.Selected = true;
|
||||
// No selection made? But we have a highlight!
|
||||
if((General.Map.Map.GetSelectedLinedefs(true).Count == 0) && (highlighted != null))
|
||||
{
|
||||
// Make the highlight the selection
|
||||
highlighted.Selected = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -443,11 +443,16 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
// Going to EditSelectionMode?
|
||||
if(General.Editing.NewMode is EditSelectionMode)
|
||||
{
|
||||
// No selection made? But we have a highlight!
|
||||
if((General.Map.Map.GetSelectedSectors(true).Count == 0) && (highlighted != null))
|
||||
// Not pasting anything?
|
||||
EditSelectionMode editmode = (General.Editing.NewMode as EditSelectionMode);
|
||||
if(!editmode.Pasting)
|
||||
{
|
||||
// Make the highlight the selection
|
||||
SelectSector(highlighted, true, false);
|
||||
// No selection made? But we have a highlight!
|
||||
if((General.Map.Map.GetSelectedSectors(true).Count == 0) && (highlighted != null))
|
||||
{
|
||||
// Make the highlight the selection
|
||||
SelectSector(highlighted, true, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -110,11 +110,16 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
// Going to EditSelectionMode?
|
||||
if(General.Editing.NewMode is EditSelectionMode)
|
||||
{
|
||||
// No selection made? But we have a highlight!
|
||||
if((General.Map.Map.GetSelectedThings(true).Count == 0) && (highlighted != null))
|
||||
// Not pasting anything?
|
||||
EditSelectionMode editmode = (General.Editing.NewMode as EditSelectionMode);
|
||||
if(!editmode.Pasting)
|
||||
{
|
||||
// Make the highlight the selection
|
||||
highlighted.Selected = true;
|
||||
// No selection made? But we have a highlight!
|
||||
if((General.Map.Map.GetSelectedThings(true).Count == 0) && (highlighted != null))
|
||||
{
|
||||
// Make the highlight the selection
|
||||
highlighted.Selected = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -104,11 +104,16 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
// Going to EditSelectionMode?
|
||||
if(General.Editing.NewMode is EditSelectionMode)
|
||||
{
|
||||
// No selection made? But we have a highlight!
|
||||
if((General.Map.Map.GetSelectedVertices(true).Count == 0) && (highlighted != null))
|
||||
// Not pasting anything?
|
||||
EditSelectionMode editmode = (General.Editing.NewMode as EditSelectionMode);
|
||||
if(!editmode.Pasting)
|
||||
{
|
||||
// Make the highlight the selection
|
||||
highlighted.Selected = true;
|
||||
// No selection made? But we have a highlight!
|
||||
if((General.Map.Map.GetSelectedVertices(true).Count == 0) && (highlighted != null))
|
||||
{
|
||||
// Make the highlight the selection
|
||||
highlighted.Selected = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue