mirror of
https://git.datalinker.icu/kijai/ComfyUI-KJNodes.git
synced 2025-12-08 20:34:35 +08:00
Fix spline/point editor bug on frontend versikon 1.21.2
This commit is contained in:
parent
9a52b7dfd2
commit
0b78aedaee
@ -112,9 +112,7 @@ app.registerExtension({
|
||||
this.uuid = makeUUID()
|
||||
element.id = `points-editor-${this.uuid}`
|
||||
|
||||
// fake image widget to allow copy/paste
|
||||
const fakeimagewidget = this.addWidget("COMBO", "image", null, () => { }, {});
|
||||
hideWidgetForGood(this, fakeimagewidget)
|
||||
this.previewMediaType = 'image'
|
||||
|
||||
this.pointsEditor = this.addDOMWidget(nodeData.name, "PointsEditorWidget", element, {
|
||||
serialize: false,
|
||||
|
||||
@ -110,9 +110,7 @@ app.registerExtension({
|
||||
this.uuid = makeUUID()
|
||||
element.id = `spline-editor-${this.uuid}`
|
||||
|
||||
// fake image widget to allow copy/paste
|
||||
const fakeimagewidget = this.addWidget("COMBO", "image", null, () => { }, {});
|
||||
hideWidgetForGood(this, fakeimagewidget)
|
||||
this.previewMediaType = 'image'
|
||||
|
||||
this.splineEditor = this.addDOMWidget(nodeData.name, "SplineEditorWidget", element, {
|
||||
serialize: false,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user