mirror of
https://github.com/JannisX11/blockbench.git
synced 2024-11-21 01:13:37 +08:00
Add save_model_action event hook
This commit is contained in:
parent
150ae9ee9b
commit
dc7f4b3ffc
@ -608,7 +608,7 @@ BARS.defineActions(function() {
|
||||
category: 'file',
|
||||
keybind: new Keybind({key: 's', ctrl: true}),
|
||||
condition: () => Project,
|
||||
click: async function() {
|
||||
click: async function(event) {
|
||||
if (isApp) {
|
||||
saveTextures()
|
||||
if (Format) {
|
||||
@ -695,6 +695,7 @@ BARS.defineActions(function() {
|
||||
Project.saved = false;
|
||||
}*/
|
||||
}
|
||||
Blockbench.dispatchEvent('save_model_action', {event});
|
||||
}
|
||||
})
|
||||
if (!isApp) {
|
||||
|
Loading…
Reference in New Issue
Block a user