- [Preview Panel] Tools hotkey can not include modifier. - [Preview Panel] Add hotkey for right-side tools.

This commit is contained in:
Tanasart 2024-06-30 17:05:27 +07:00
parent d10aa6818e
commit cc296a4cd2
2 changed files with 7 additions and 4 deletions

View File

@ -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": {

View File

@ -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() {}