From 742fe7c7d1a4de41c264be2d00ed4f28d705c49a Mon Sep 17 00:00:00 2001 From: Jack Gallant Date: Mon, 1 Jun 2026 11:10:32 -0700 Subject: [PATCH] Revert "webgl: redraw when the SVG overlay finishes its async texture bake (#644)" This reverts commit ab156df03d7c091769d1abaebbdeaab5981727c0. --- cortex/webgl/resources/js/mriview.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/cortex/webgl/resources/js/mriview.js b/cortex/webgl/resources/js/mriview.js index ee85c8b1..a407b03c 100644 --- a/cortex/webgl/resources/js/mriview.js +++ b/cortex/webgl/resources/js/mriview.js @@ -738,10 +738,6 @@ var mriview = (function(module) { var surf = new surftype(this.active, opts); surf.addEventListener("mix", this._mix); surf.addEventListener("allowTilt", this._allowTilt); - // The SVG overlay (ROIs/sulci/labels) re-bakes its texture asynchronously, then - // dispatches "update" on the surface once the new texture is swapped in. Redraw when - // that lands, otherwise a toggle isn't visible until the next interaction. - surf.addEventListener("update", this.schedule.bind(this)); this.surfs.push(surf); this.root.add(surf.object);