Fix ctrl-z

This commit is contained in:
daine
2018-04-30 15:26:03 +02:00
parent 665575a7c5
commit 7d420ebeee
2 changed files with 2 additions and 2 deletions

View File

@@ -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;

View File

@@ -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;