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
631132c8
Commit
631132c8
authored
Jun 08, 2023
by
comfyanonymous
Browse files
Merge branch 'bugfix/paste-clipspace' of
https://github.com/ltdrdata/ComfyUI
parents
5cf40799
28677342
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
4 deletions
+17
-4
web/scripts/app.js
web/scripts/app.js
+17
-4
No files found.
web/scripts/app.js
View file @
631132c8
...
@@ -125,10 +125,14 @@ export class ComfyApp {
...
@@ -125,10 +125,14 @@ export class ComfyApp {
if
(
ComfyApp
.
clipspace
.
imgs
&&
node
.
imgs
)
{
if
(
ComfyApp
.
clipspace
.
imgs
&&
node
.
imgs
)
{
if
(
node
.
images
&&
ComfyApp
.
clipspace
.
images
)
{
if
(
node
.
images
&&
ComfyApp
.
clipspace
.
images
)
{
if
(
ComfyApp
.
clipspace
[
'
img_paste_mode
'
]
==
'
selected
'
)
{
if
(
ComfyApp
.
clipspace
[
'
img_paste_mode
'
]
==
'
selected
'
)
{
app
.
nodeOutputs
[
node
.
id
+
""
].
images
=
node
.
images
=
[
ComfyApp
.
clipspace
.
images
[
ComfyApp
.
clipspace
[
'
selectedIndex
'
]]];
node
.
images
=
[
ComfyApp
.
clipspace
.
images
[
ComfyApp
.
clipspace
[
'
selectedIndex
'
]]];
}
}
else
else
{
app
.
nodeOutputs
[
node
.
id
+
""
].
images
=
node
.
images
=
ComfyApp
.
clipspace
.
images
;
node
.
images
=
ComfyApp
.
clipspace
.
images
;
}
if
(
app
.
nodeOutputs
[
node
.
id
+
""
])
app
.
nodeOutputs
[
node
.
id
+
""
].
images
=
node
.
images
;
}
}
if
(
ComfyApp
.
clipspace
.
imgs
)
{
if
(
ComfyApp
.
clipspace
.
imgs
)
{
...
@@ -161,7 +165,16 @@ export class ComfyApp {
...
@@ -161,7 +165,16 @@ export class ComfyApp {
if
(
ComfyApp
.
clipspace
.
widgets
)
{
if
(
ComfyApp
.
clipspace
.
widgets
)
{
ComfyApp
.
clipspace
.
widgets
.
forEach
(({
type
,
name
,
value
})
=>
{
ComfyApp
.
clipspace
.
widgets
.
forEach
(({
type
,
name
,
value
})
=>
{
const
prop
=
Object
.
values
(
node
.
widgets
).
find
(
obj
=>
obj
.
type
===
type
&&
obj
.
name
===
name
);
const
prop
=
Object
.
values
(
node
.
widgets
).
find
(
obj
=>
obj
.
type
===
type
&&
obj
.
name
===
name
);
if
(
prop
&&
prop
.
type
!=
'
button
'
)
{
if
(
prop
&&
prop
.
type
!=
'
image
'
)
{
if
(
typeof
prop
.
value
==
"
string
"
&&
value
.
filename
)
{
prop
.
value
=
(
value
.
subfolder
?
value
.
subfolder
+
'
/
'
:
''
)
+
value
.
filename
+
(
value
.
type
?
` [
${
value
.
type
}
]`
:
''
);
}
else
{
prop
.
value
=
value
;
prop
.
callback
(
value
);
}
}
else
if
(
prop
&&
prop
.
type
!=
'
button
'
)
{
prop
.
value
=
value
;
prop
.
value
=
value
;
prop
.
callback
(
value
);
prop
.
callback
(
value
);
}
}
...
...
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