mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-27 06:02:11 +00:00
@ and a small improvement on that
This commit is contained in:
parent
123167461d
commit
7bf248130a
1 changed files with 6 additions and 2 deletions
|
@ -673,6 +673,8 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
{
|
||||
base.OnEngage();
|
||||
|
||||
bool autodrag = (pasting && mouseinside && BuilderPlug.Me.AutoDragOnPaste);
|
||||
|
||||
// Add toolbar buttons
|
||||
General.Interface.AddButton(BuilderPlug.Me.MenusForm.FlipSelectionH);
|
||||
General.Interface.AddButton(BuilderPlug.Me.MenusForm.FlipSelectionV);
|
||||
|
@ -785,7 +787,9 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
|
||||
UpdateGeometry();
|
||||
General.Map.Data.UpdateUsedTextures();
|
||||
General.Map.Map.Update();
|
||||
|
||||
if(!autodrag)
|
||||
General.Map.Map.Update();
|
||||
}
|
||||
|
||||
// Set presentation
|
||||
|
@ -799,7 +803,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
Update();
|
||||
|
||||
// When pasting and mouse is in screen, drag selection immediately
|
||||
if(pasting && mouseinside && BuilderPlug.Me.AutoDragOnPaste) OnSelectBegin();
|
||||
if(autodrag) OnSelectBegin();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue