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;