only change editor brushes on mouseup

let other uses of the right mouse button bubble up
This commit is contained in:
teees
2015-11-03 12:45:14 +01:00
parent eb6df6fe62
commit 2465344a20
3 changed files with 21 additions and 6 deletions

View File

@@ -89,8 +89,13 @@ namespace OpenRA.Mods.Common.Widgets
if (mi.Button == MouseButton.Right)
{
editorWidget.ClearBrush();
return true;
if (mi.Event == MouseInputEvent.Up)
{
editorWidget.ClearBrush();
return true;
}
return false;
}
var cell = worldRenderer.Viewport.ViewToWorld(mi.Location);