From 7d420ebeeebbb7426d75d5eaf7bb48d029d1390d Mon Sep 17 00:00:00 2001 From: daine Date: Mon, 30 Apr 2018 15:26:03 +0200 Subject: [PATCH] Fix ctrl-z --- build/litegraph.js | 2 +- src/litegraph.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build/litegraph.js b/build/litegraph.js index e05cb2daa..db9a36022 100644 --- a/build/litegraph.js +++ b/build/litegraph.js @@ -4507,7 +4507,7 @@ LGraphCanvas.prototype.drawBackCanvas = function() //render BG if(this.background_image && this.scale > 0.5) { - if (zoom_modify_alpha) + if (this.zoom_modify_alpha) ctx.globalAlpha = (1.0 - 0.5 / this.scale) * this.editor_alpha; else ctx.globalAlpha = this.editor_alpha; diff --git a/src/litegraph.js b/src/litegraph.js index 5151291a7..12627de6c 100755 --- a/src/litegraph.js +++ b/src/litegraph.js @@ -4505,7 +4505,7 @@ LGraphCanvas.prototype.drawBackCanvas = function() //render BG if(this.background_image && this.scale > 0.5) { - if (zoom_modify_alpha) + if (this.zoom_modify_alpha) ctx.globalAlpha = (1.0 - 0.5 / this.scale) * this.editor_alpha; else ctx.globalAlpha = this.editor_alpha;