Add save_model_action event hook

This commit is contained in:
JannisX11 2023-05-26 23:27:23 +02:00
parent 150ae9ee9b
commit dc7f4b3ffc

View File

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