Delete GL annotations when going to a new event.
authormtadel <mtadel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 24 Mar 2009 17:08:20 +0000 (17:08 +0000)
committermtadel <mtadel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 24 Mar 2009 17:08:20 +0000 (17:08 +0000)
EVE/EveBase/AliEveEventManager.cxx

index 0bf8430..da0c2a3 100644 (file)
@@ -10,6 +10,7 @@
 #include "AliEveEventManager.h"
 #include "AliEveMacroExecutor.h"
 #include <TEveManager.h>
+#include <TEveViewer.h>
 
 #include <AliRunLoader.h>
 #include <AliRun.h>
@@ -690,6 +691,7 @@ void AliEveEventManager::GotoEvent(Int_t event)
   // !!! MT this is somewhat brutal; at least optionally, one could be
   // a bit gentler, checking for objs owning their external refs and having
   // additinal parents.
+  gEve->GetViewers()->DeleteAnnotations();
   fTransients->DestroyElements();
   for (TEveElement::List_i i = fTransientLists->BeginChildren();
        i != fTransientLists->EndChildren(); ++i)