🐛 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

@@ -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;
}