Skip to content

Commit

Permalink
fix subpatchops corelibs
Browse files Browse the repository at this point in the history
  • Loading branch information
pandrr committed Mar 4, 2024
1 parent d110e34 commit 7673cc1
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/libs/cables/subpatchop.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -58,6 +73,7 @@ const SubPatchOp = class
return this._op.patchId.get();
}


createInOutOps()
{
if (this._op.patch.clearSubPatchCache) this._op.patch.clearSubPatchCache(this.patchId);
Expand Down

0 comments on commit 7673cc1

Please sign in to comment.