Skip to content

Commit fbdd6ae

Browse files
authoredOct 5, 2023
Merge pull request jagenjo#421 from OptrixAU/master
Fixes issue with restoring serialised graphs with widgets set to 0.
2 parents 2d83d6e + e3cde7f commit fbdd6ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/litegraph.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2530,7 +2530,7 @@
25302530
var w = this.widgets[i];
25312531
if(!w)
25322532
continue;
2533-
if(w.options && w.options.property && this.properties[ w.options.property ])
2533+
if(w.options && w.options.property && (this.properties[ w.options.property ] != undefined))
25342534
w.value = JSON.parse( JSON.stringify( this.properties[ w.options.property ] ) );
25352535
}
25362536
if (info.widgets_values) {

0 commit comments

Comments
 (0)
Please sign in to comment.