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
1ed6cadf
Commit
1ed6cadf
authored
Apr 03, 2023
by
comfyanonymous
Browse files
Merge branch 'master' of
https://github.com/omar92/ComfyUI
parents
ef595483
ca2ae984
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
web/extensions/core/dynamicPrompts.js
web/extensions/core/dynamicPrompts.js
+2
-1
web/extensions/core/rerouteNode.js
web/extensions/core/rerouteNode.js
+3
-3
No files found.
web/extensions/core/dynamicPrompts.js
View file @
1ed6cadf
...
...
@@ -30,6 +30,7 @@ app.registerExtension({
}
// Overwrite the value in the serialized workflow pnginfo
if
(
workflowNode
?.
widgets_values
)
workflowNode
.
widgets_values
[
widgetIndex
]
=
prompt
;
return
prompt
;
...
...
web/extensions/core/rerouteNode.js
View file @
1ed6cadf
...
...
@@ -55,7 +55,7 @@ app.registerExtension({
}
else
{
// We've found the end
inputNode
=
currentNode
;
inputType
=
node
.
outputs
[
link
.
origin_slot
].
type
;
inputType
=
node
.
outputs
[
link
.
origin_slot
]
?
.
type
??
null
;
break
;
}
}
else
{
...
...
@@ -87,7 +87,7 @@ app.registerExtension({
updateNodes
.
push
(
node
);
}
else
{
// We've found an output
const
nodeOutType
=
node
.
inputs
[
link
.
target_slot
].
type
;
const
nodeOutType
=
node
.
inputs
&&
node
.
inputs
[
link
?.
target_slot
]
&&
node
.
inputs
[
link
.
target_slot
].
type
?
node
.
inputs
[
link
.
target_slot
].
type
:
null
;
if
(
inputType
&&
nodeOutType
!==
inputType
)
{
// The output doesnt match our input so disconnect it
node
.
disconnectInput
(
link
.
target_slot
);
...
...
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