Skip to content

Commit e3cde7f

Browse files
committed
Fixes issue with restoring serialised graphs with widgets set to 0.
1 parent 44e49ac commit e3cde7f

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)