flabbet 8 months ago
parent
commit
2a0a3dd6c6

+ 2 - 2
src/PixiEditor/Data/Configs/ToolSetsConfig.json

@@ -99,10 +99,10 @@
       "MoveViewport",
       "RotateViewport",
       "Move",
+      "VectorPath",
       "VectorLine",
       "VectorEllipse",
-      "VectorRectangle",
-      "VectorPath"
+      "VectorRectangle"
     ]
   }
 ]

+ 2 - 2
src/PixiEditor/Properties/AssemblyInfo.cs

@@ -42,5 +42,5 @@ using System.Windows;
 // You can specify all the values or you can default the Build and Revision Numbers
 // by using the '*' as shown below:
 // [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("2.0.0.21")]
-[assembly: AssemblyFileVersion("2.0.0.21")]
+[assembly: AssemblyVersion("2.0.0.22")]
+[assembly: AssemblyFileVersion("2.0.0.22")]

+ 4 - 5
src/PixiEditor/ViewModels/Tools/Tools/VectorPathToolViewModel.cs

@@ -1,17 +1,16 @@
-using Drawie.Numerics;
-using PixiEditor.ChangeableDocument;
-using PixiEditor.ChangeableDocument.Changeables.Animations;
-using PixiEditor.ChangeableDocument.Changeables.Graph.Interfaces.Shapes;
+using Avalonia.Input;
+using Drawie.Numerics;
 using PixiEditor.ChangeableDocument.Changeables.Graph.Nodes;
 using PixiEditor.Extensions.Common.Localization;
+using PixiEditor.Models.Commands.Attributes.Commands;
 using PixiEditor.Models.Handlers;
 using PixiEditor.Models.Handlers.Tools;
 using PixiEditor.UI.Common.Fonts;
-using PixiEditor.ViewModels.Document;
 using PixiEditor.ViewModels.Tools.ToolSettings.Toolbars;
 
 namespace PixiEditor.ViewModels.Tools.Tools;
 
+[Command.Tool(Key = Key.P)]
 internal class VectorPathToolViewModel : ShapeTool, IVectorPathToolHandler
 {
     public override string ToolNameLocalizationKey => "PATH_TOOL";