diff --git a/package.json b/package.json index 27766a9..92ee757 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "graphfx", - "version": "0.0.11", + "version": "0.0.12", "description": "Graph image processing pipeline", "main": "src/index.js", "scripts": { diff --git a/src/nodes/Disable.js b/src/nodes/Disable.js index 10b43c7..34bb7b5 100644 --- a/src/nodes/Disable.js +++ b/src/nodes/Disable.js @@ -26,6 +26,9 @@ export default class Disable extends Node { async _update() { if (!this.in.disabled.value) { this.out.image.value = this.in.image.value; + if (!this.out.image.value) { + return; + } if (this.out.width.value !== this.out.image.value.width) { this.out.width.value = this.out.image.value.width; }