Commit b13539c3 authored by pythongosssss's avatar pythongosssss
Browse files

Sync widget changes

parent bb001767
...@@ -251,6 +251,16 @@ app.registerExtension({ ...@@ -251,6 +251,16 @@ app.registerExtension({
addRandomizeWidget(this, widget, "Random after every gen"); addRandomizeWidget(this, widget, "Random after every gen");
} }
// When our value changes, update other widgets to reflect our changes
// e.g. so LoadImage shows correct image
const callback = widget.callback;
const self = this;
widget.callback = function () {
const r = callback ? callback.apply(this, arguments) : undefined;
self.applyToGraph();
return r;
};
// Grow our node if required // Grow our node if required
const sz = this.computeSize(); const sz = this.computeSize();
if (this.size[0] < sz[0]) { if (this.size[0] < sz[0]) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment