From 7673cc16aa8a3e3d52a021d7e3961b513001b154 Mon Sep 17 00:00:00 2001 From: pandrr Date: Mon, 4 Mar 2024 16:40:59 +0100 Subject: [PATCH] fix subpatchops corelibs --- src/libs/cables/subpatchop.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/libs/cables/subpatchop.js b/src/libs/cables/subpatchop.js index 2f07aa24b0..b16b0c26f1 100644 --- a/src/libs/cables/subpatchop.js +++ b/src/libs/cables/subpatchop.js @@ -38,6 +38,21 @@ const SubPatchOp = class op.setStorage({ "subPatchVer": 2 }); }; + op.loadDependencies = (p, next) => + { + if (CABLES.UI) + { + gui.serverOps.loadProjectDependencies(p, () => + { + if (next)next(); + }); + } + else + if (next)next(); + }; + + + op.on("delete", () => { if (op.patch.clearSubPatchCache)op.patch.clearSubPatchCache(this.patchId); @@ -58,6 +73,7 @@ const SubPatchOp = class return this._op.patchId.get(); } + createInOutOps() { if (this._op.patch.clearSubPatchCache) this._op.patch.clearSubPatchCache(this.patchId);