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
126b4050
Unverified
Commit
126b4050
authored
Jun 04, 2023
by
Dr.Lt.Data
Committed by
GitHub
Jun 03, 2023
Browse files
Crash fix for intermittent crashes that occur when opening MaskEditor. (#732)
parent
0764bb52
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
web/extensions/core/maskeditor.js
web/extensions/core/maskeditor.js
+1
-1
No files found.
web/extensions/core/maskeditor.js
View file @
126b4050
...
...
@@ -314,11 +314,11 @@ class MaskEditorDialog extends ComfyDialog {
imgCtx
.
drawImage
(
orig_image
,
0
,
0
,
drawWidth
,
drawHeight
);
// update mask
backupCtx
.
drawImage
(
maskCanvas
,
0
,
0
,
maskCanvas
.
width
,
maskCanvas
.
height
,
0
,
0
,
backupCanvas
.
width
,
backupCanvas
.
height
);
maskCanvas
.
width
=
drawWidth
;
maskCanvas
.
height
=
drawHeight
;
maskCanvas
.
style
.
top
=
imgCanvas
.
offsetTop
+
"
px
"
;
maskCanvas
.
style
.
left
=
imgCanvas
.
offsetLeft
+
"
px
"
;
backupCtx
.
drawImage
(
maskCanvas
,
0
,
0
,
maskCanvas
.
width
,
maskCanvas
.
height
,
0
,
0
,
backupCanvas
.
width
,
backupCanvas
.
height
);
maskCtx
.
drawImage
(
backupCanvas
,
0
,
0
,
backupCanvas
.
width
,
backupCanvas
.
height
,
0
,
0
,
maskCanvas
.
width
,
maskCanvas
.
height
);
});
...
...
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