diff --git a/web/js/point_editor.js b/web/js/point_editor.js index 210591f..86bd8fe 100644 --- a/web/js/point_editor.js +++ b/web/js/point_editor.js @@ -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, diff --git a/web/js/spline_editor.js b/web/js/spline_editor.js index a8085b9..486f127 100644 --- a/web/js/spline_editor.js +++ b/web/js/spline_editor.js @@ -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,