Merge branch 'main' into develop

This commit is contained in:
kijai 2024-05-06 00:29:03 +03:00
commit 48736ca845

View File

@ -187,8 +187,8 @@ app.registerExtension({
this.splineEditor.parentEl.className = "spline-editor";
this.splineEditor.parentEl.id = `spline-editor-${this.uuid}`
element.appendChild(this.splineEditor.parentEl);
chainCallback(this, "onGraphConfigured", function() {
chainCallback(this, "onConfigure", function() {
createSplineEditor(this);
});
@ -394,6 +394,10 @@ function createSplineEditor(context, reset=false) {
context.setSize([context.size[0], h + 410]);
updatePath();
}
pointsStoreWidget.callback = () => {
points = JSON.parse(pointsStoreWidget.value);
updatePath();
}
// Initialize or reset points array
var drawHandles = false;