From e3cde7f66e36b5c3b986e373a91d41f760ed5460 Mon Sep 17 00:00:00 2001 From: Steven Harding Date: Thu, 5 Oct 2023 09:03:07 +1100 Subject: [PATCH] Fixes issue with restoring serialised graphs with widgets set to 0. --- src/litegraph.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/litegraph.js b/src/litegraph.js index cf6ba04d1..38391a0d7 100755 --- a/src/litegraph.js +++ b/src/litegraph.js @@ -2530,7 +2530,7 @@ var w = this.widgets[i]; if(!w) continue; - if(w.options && w.options.property && this.properties[ w.options.property ]) + if(w.options && w.options.property && (this.properties[ w.options.property ] != undefined)) w.value = JSON.parse( JSON.stringify( this.properties[ w.options.property ] ) ); } if (info.widgets_values) {