cables-gl / cables_docs

cables documentation docs.cables.gl
https://cables.gl/docs/docs
45 stars 16 forks source link

Editing subpatch inputs/outputs is erratic #784

Open esperanc opened 5 months ago

esperanc commented 5 months ago

Link to simple, reproducible example patch https://cables.gl/edit/ep6PQe

Describe the bug Editing a subpatch from multiple instances causes message "A different reference to this subpatchOp was changed. Continue edit HERE" to appear and never go away (see below)

Screenshot 2024-06-05 at 16 08 18

How To Reproduce

  1. Create a subpatch and add multiple instances of it by copying and pasting.
  2. Double click an instance to edit the subpatch. Add another input/output port or create/remove a cable to the subpatch input or output port.
  3. Go back to main and double-click another instance. If you try to edit the subpatch you get the message.
  4. (optional) click the "HERE" button: the message does not go away.
  5. (optional) reload the patch: the message disappears but it is unclear which edited version of the subpatch you get.
  6. In some tests the subpatch display completely disappear.

Platform

Dev Tools cables.js:943 [LoadingStatus] finished loading 3 assets in 0.209s cablesui.js:29142 updaterestrict?!

steam0r commented 5 months ago

hey, thanks for the report. this is fixed on dev.cables.gl and will be in the next release. the warning disappears after the patchfield was navigated to the subpatch that was changed.