🐛 disable skip dimensions when image missing

This commit is contained in:
2019-06-20 15:59:38 +02:00
parent 62cba3f10f
commit 404cf14aee
2 changed files with 4 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
{ {
"name": "graphfx", "name": "graphfx",
"version": "0.0.11", "version": "0.0.12",
"description": "Graph image processing pipeline", "description": "Graph image processing pipeline",
"main": "src/index.js", "main": "src/index.js",
"scripts": { "scripts": {

View File

@@ -26,6 +26,9 @@ export default class Disable extends Node {
async _update() { async _update() {
if (!this.in.disabled.value) { if (!this.in.disabled.value) {
this.out.image.value = this.in.image.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) { if (this.out.width.value !== this.out.image.value.width) {
this.out.width.value = this.out.image.value.width; this.out.width.value = this.out.image.value.width;
} }