From cc296a4cd216f3df0ec7c1efbb6f12c40ee24767 Mon Sep 17 00:00:00 2001 From: Tanasart Date: Sun, 30 Jun 2024 17:05:27 +0700 Subject: [PATCH] - [Preview Panel] Tools hotkey can not include modifier. - [Preview Panel] Add hotkey for right-side tools. --- scripts/hotkey_data/hotkey_data.gml | 8 ++++---- scripts/node_tool/node_tool.gml | 3 +++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/scripts/hotkey_data/hotkey_data.gml b/scripts/hotkey_data/hotkey_data.gml index 5292f4a88..a691f8bf8 100644 --- a/scripts/hotkey_data/hotkey_data.gml +++ b/scripts/hotkey_data/hotkey_data.gml @@ -14,10 +14,10 @@ "Freeform": new hotkeySimple("Q"), "Fill": new hotkeySimple("G"), - "Outline": new hotkeySimple("O", MOD_KEY.shift), - "Extrude": new hotkeySimple("E", MOD_KEY.shift), - "Inset": new hotkeySimple("I", MOD_KEY.shift), - "Skew": new hotkeySimple("S", MOD_KEY.shift), + "Outline": new hotkeySimple("O", MOD_KEY.alt), + "Extrude": new hotkeySimple("E", MOD_KEY.alt), + "Inset": new hotkeySimple("I", MOD_KEY.alt), + "Skew": new hotkeySimple("S", MOD_KEY.alt), }, "Node_Mesh_Warp": { diff --git a/scripts/node_tool/node_tool.gml b/scripts/node_tool/node_tool.gml index 6cf4320f6..3752ada08 100644 --- a/scripts/node_tool/node_tool.gml +++ b/scripts/node_tool/node_tool.gml @@ -98,6 +98,9 @@ function NodeTool(name, spr, contextString = instanceof(other)) constructor { if(PANEL_PREVIEW.tool_current == self) onToggle(); + + var _obj = getToolObject(); + if(_obj) _obj.init(context); } static onToggle = function() {}