mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-26 22:01:45 +00:00
More fixes for erroneously being able to select object multiple times when paint selecting
This commit is contained in:
parent
18d56c6e04
commit
3fbad3c8ac
3 changed files with 36 additions and 21 deletions
|
@ -461,23 +461,28 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
{
|
||||
if (General.Interface.ShiftState ^ BuilderPlug.Me.AdditivePaintSelect)
|
||||
{
|
||||
this.selected = true;
|
||||
if (!selected)
|
||||
{
|
||||
selected = true;
|
||||
mode.AddSelectedObject(this);
|
||||
}
|
||||
}
|
||||
else if (General.Interface.CtrlState)
|
||||
{
|
||||
this.selected = false;
|
||||
if (selected)
|
||||
{
|
||||
selected = false;
|
||||
mode.RemoveSelectedObject(this);
|
||||
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (this.selected)
|
||||
if (selected)
|
||||
mode.RemoveSelectedObject(this);
|
||||
else
|
||||
mode.AddSelectedObject(this);
|
||||
|
||||
this.selected = !this.selected;
|
||||
selected = !selected;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1433,23 +1433,28 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
// toggle selected state
|
||||
if (General.Interface.ShiftState ^ BuilderPlug.Me.AdditivePaintSelect)
|
||||
{
|
||||
this.selected = true;
|
||||
if (!selected)
|
||||
{
|
||||
selected = true;
|
||||
mode.AddSelectedObject(this);
|
||||
}
|
||||
}
|
||||
else if (General.Interface.CtrlState)
|
||||
{
|
||||
this.selected = false;
|
||||
if (selected)
|
||||
{
|
||||
selected = false;
|
||||
mode.RemoveSelectedObject(this);
|
||||
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (this.selected)
|
||||
if (selected)
|
||||
mode.RemoveSelectedObject(this);
|
||||
else
|
||||
mode.AddSelectedObject(this);
|
||||
|
||||
this.selected = !this.selected;
|
||||
selected = !selected;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -878,23 +878,28 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
{
|
||||
if (General.Interface.ShiftState ^ BuilderPlug.Me.AdditivePaintSelect)
|
||||
{
|
||||
this.selected = true;
|
||||
if (!selected)
|
||||
{
|
||||
selected = true;
|
||||
mode.AddSelectedObject(this);
|
||||
}
|
||||
}
|
||||
else if (General.Interface.CtrlState)
|
||||
{
|
||||
this.selected = false;
|
||||
if (selected)
|
||||
{
|
||||
selected = false;
|
||||
mode.RemoveSelectedObject(this);
|
||||
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (this.selected)
|
||||
if (selected)
|
||||
mode.RemoveSelectedObject(this);
|
||||
else
|
||||
mode.AddSelectedObject(this);
|
||||
|
||||
this.selected = !this.selected;
|
||||
selected = !selected;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue