mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-23 04:12:12 +00:00
Fixed bug which causes a highlighted linedef to be copied even when a selection was made
This commit is contained in:
parent
809f6c59ed
commit
bc2d36db08
1 changed files with 2 additions and 2 deletions
|
@ -503,7 +503,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
public override bool OnCopyBegin()
|
||||
{
|
||||
// No selection made? But we have a highlight!
|
||||
if((General.Map.Map.GetSelectedSectors(true).Count == 0) && (highlighted != null))
|
||||
if((General.Map.Map.GetSelectedLinedefs(true).Count == 0) && (highlighted != null))
|
||||
{
|
||||
// Make the highlight the selection
|
||||
highlighted.Selected = true;
|
||||
|
@ -516,7 +516,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
public override bool OnPasteBegin()
|
||||
{
|
||||
// No selection made? But we have a highlight!
|
||||
if((General.Map.Map.GetSelectedSectors(true).Count == 0) && (highlighted != null))
|
||||
if((General.Map.Map.GetSelectedLinedefs(true).Count == 0) && (highlighted != null))
|
||||
{
|
||||
// Make the highlight the selection
|
||||
highlighted.Selected = true;
|
||||
|
|
Loading…
Reference in a new issue