🐛 disable skip dimensions when image missing
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "graphfx",
|
||||
"version": "0.0.11",
|
||||
"version": "0.0.12",
|
||||
"description": "Graph image processing pipeline",
|
||||
"main": "src/index.js",
|
||||
"scripts": {
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user