Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
ComfyUI
Commits
b13539c3
Commit
b13539c3
authored
Mar 24, 2023
by
pythongosssss
Browse files
Sync widget changes
parent
bb001767
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
web/extensions/core/widgetInputs.js
web/extensions/core/widgetInputs.js
+10
-0
No files found.
web/extensions/core/widgetInputs.js
View file @
b13539c3
...
@@ -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
])
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment