]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
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 0bf843041a63ed66d1a1406033a35dd12e070b74..da0c2a3b0f0e83d557e62fa40dadc53f7e417477 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)