vtkInteractorEventRecorder in record mode causes vtkObject.cxx:556 WARN| Passive observer should not call AddObserver or RemoveObserver in callback.
Hello,
Don't know if this is a bug or merely undesirable behaviour, but it does issue the warning in the title.
There is indeed the following sequence:
vtkInteractorEventRecorder::vtkInteractorEventRecorder():
...
this->EventCallbackCommand->SetCallback(vtkInteractorEventRecorder::ProcessEvents);
this->EventCallbackCommand->SetPassiveObserver(1);
void vtkInteractorEventRecorder::ProcessEvents(...):
self->Off();
void vtkInteractorEventRecorder::SetEnabled(...):
...
this->Interactor->AddObserver(vtkCommand::AnyEvent, this->EventCallbackCommand, this->Priority);
...
this->Interactor->RemoveObserver(this->EventCallbackCommand);
Similar scenario occurs with ProcessCharEvent
.