Commit 0b5b403d authored by jcfr's avatar jcfr
Browse files

BUG: MRMLDisplayableGroup - After the group catched the...

BUG: MRMLDisplayableGroup - After the group catched the DisplayableManagerFactoryRegisteredEvent make sure the MRMLViewNode and the Create method of the DisplayableManager are called.

This is a "quick/dirty" fix allowint the Annotation module folks to progress...
Note that the test vtkMRMLCameraDisplayableManagerTest1 has now leaks.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@14116 3bd1e089-480b-0410-8dfb-8563597acbee
parent 47a70936
......@@ -178,6 +178,8 @@ void vtkMRMLDisplayableManagerGroup::AddAndInitialize(
if (!initialized)
{
displayableManager->Initialize(this, this->Internal->Renderer);
displayableManager->SetAndObserveMRMLViewNode(this->GetMRMLViewNode());
displayableManager->CreateIfPossible();
}
displayableManager->Register(this);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment