diff --git a/src/nodes/Disable.js b/src/nodes/Disable.js index d7d7ce7..10b43c7 100644 --- a/src/nodes/Disable.js +++ b/src/nodes/Disable.js @@ -14,12 +14,24 @@ export default class Disable extends Node { image: { type: 'Image', }, + width: { + type: 'Number', + }, + height: { + type: 'Number', + }, }, {}); } async _update() { if (!this.in.disabled.value) { this.out.image.value = this.in.image.value; + if (this.out.width.value !== this.out.image.value.width) { + this.out.width.value = this.out.image.value.width; + } + if (this.out.height.value !== this.out.image.value.height) { + this.out.height.value = this.out.image.value.height; + } } }