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
501f200d
Commit
501f200d
authored
Apr 13, 2023
by
comfyanonymous
Browse files
Fix widgets not getting converted correctly in workflows.
parent
3f52e7cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
web/scripts/app.js
web/scripts/app.js
+5
-1
No files found.
web/scripts/app.js
View file @
501f200d
...
@@ -949,9 +949,13 @@ class ComfyApp {
...
@@ -949,9 +949,13 @@ class ComfyApp {
widget
.
value
=
widget
.
value
.
slice
(
7
);
widget
.
value
=
widget
.
value
.
slice
(
7
);
}
}
}
}
}
if
(
node
.
type
==
"
KSampler
"
||
node
.
type
==
"
KSamplerAdvanced
"
||
node
.
type
==
"
PrimitiveNode
"
)
{
if
(
widget
.
name
==
"
control_after_generate
"
)
{
if
(
widget
.
name
==
"
control_after_generate
"
)
{
if
(
widget
.
value
==
true
)
{
if
(
widget
.
value
==
=
true
)
{
widget
.
value
=
"
randomize
"
;
widget
.
value
=
"
randomize
"
;
}
else
if
(
widget
.
value
===
false
)
{
widget
.
value
=
"
fixed
"
;
}
}
}
}
}
}
...
...
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