From 5a992b085cdec866438ca6c2ea207a340964e538 Mon Sep 17 00:00:00 2001 From: Michael MIGLIORE Date: Thu, 6 Jun 2024 19:12:41 +0200 Subject: [PATCH] Fix unwind exception (#1457) --- library/src/interactor_impl.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/library/src/interactor_impl.cxx b/library/src/interactor_impl.cxx index 52197a8ee7..32bc414043 100644 --- a/library/src/interactor_impl.cxx +++ b/library/src/interactor_impl.cxx @@ -40,6 +40,9 @@ class interactor_impl::internals , Window(window) , Loader(loader) { +#ifdef __EMSCRIPTEN__ + vtkRenderWindowInteractor::InteractorManagesTheEventLoop = false; +#endif this->VTKInteractor->SetRenderWindow(this->Window.GetRenderWindow()); this->VTKInteractor->SetInteractorStyle(this->Style); this->VTKInteractor->Initialize();