From 404cf14aeeb7a2094c498e5359418bd9170d36e6 Mon Sep 17 00:00:00 2001 From: Stanislav Fifik Date: Thu, 20 Jun 2019 15:59:38 +0200 Subject: [PATCH] :bug: disable skip dimensions when image missing --- package.json | 2 +- src/nodes/Disable.js | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) 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; }