From d2592eff0ad0b3136faeeef17ae0ab6125539e37 Mon Sep 17 00:00:00 2001 From: JannisX11 Date: Thu, 1 Oct 2020 18:24:20 +0200 Subject: [PATCH] Update animate textures icon after texture resize Fix unsaved animations saving Add tooltips to animation list Add Blockbench.isNewerThan --- js/animations/animation.js | 6 +++--- js/api.js | 3 +++ js/texturing/textures.js | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/js/animations/animation.js b/js/animations/animation.js index b8ba400e..2e55a470 100644 --- a/js/animations/animation.js +++ b/js/animations/animation.js @@ -1376,7 +1376,7 @@ const Animator = { if (isApp && path && fs.existsSync(path)) { Animator.animations.forEach(function(a) { - if (a.path == filter_path) { + if (a.path == filter_path && !a.saved) { a.save(); } }) @@ -1600,7 +1600,7 @@ Interface.definePanels(function() {
  • - +
    save
    @@ -1620,7 +1620,7 @@ Interface.definePanels(function() { @contextmenu.prevent.stop="animation.showContextMenu($event)" > movie - +
    check_circle save diff --git a/js/api.js b/js/api.js index 59a8057a..b9d24566 100644 --- a/js/api.js +++ b/js/api.js @@ -34,6 +34,9 @@ const Blockbench = { location.reload() } }, + isNewerThan(version) { + return compareVersions(Blockbench.version, version); + }, registerEdit() { console.warn('Blockbench.registerEdit is outdated. Please use Undo.initEdit and Undo.finishEdit') }, diff --git a/js/texturing/textures.js b/js/texturing/textures.js index df8c469a..ae782217 100644 --- a/js/texturing/textures.js +++ b/js/texturing/textures.js @@ -786,10 +786,10 @@ class Texture { Project.texture_height = Project.texture_height * (formResult.height / old_height); Canvas.updateAllUVs() } - updateSelection() return new_canvas }) + setTimeout(updateSelection, 100); dialog.hide() }