Browse Source

Revert "#295 Restore a tool when Space is released"

This reverts commit 57dd18aaa1fc24af45ba6c624ff23c17a3c4bd72.
tomaszkot 3 years ago
parent
commit
a6e70cd93f
1 changed files with 1 additions and 2 deletions
  1. 1 2
      PixiEditor/ViewModels/SubViewModels/Main/ToolsViewModel.cs

+ 1 - 2
PixiEditor/ViewModels/SubViewModels/Main/ToolsViewModel.cs

@@ -176,8 +176,7 @@ namespace PixiEditor.ViewModels.SubViewModels.Main
         private void SetActiveTool(Type toolType)
         {
             Tool foundTool = ToolSet.First(x => x.GetType() == toolType);
-            if(ActiveTool != foundTool)//otherwise we would lost track of LastActionTool
-              SetActiveTool(foundTool);
+            SetActiveTool(foundTool);
         }
 
         private void SetToolCursor(Type tool)