Commit 2919592c authored by Ken Martin's avatar Ken Martin
Browse files

fix for double proxy

parent 3ea31104
......@@ -28,7 +28,7 @@
#include "vtkSMProxyManagerInternals.h"
vtkStandardNewMacro(vtkSMProxyManager);
vtkCxxRevisionMacro(vtkSMProxyManager, "1.14.2.1");
vtkCxxRevisionMacro(vtkSMProxyManager, "1.14.2.2");
//---------------------------------------------------------------------------
vtkSMProxyManager::vtkSMProxyManager()
......@@ -65,10 +65,13 @@ void vtkSMProxyManager::InstantiateGroupPrototypes(const char* groupName)
for(; it2 != it->second.end(); it2++)
{
vtkPVXMLElement* element = it2->second.GetPointer();
if (!this->GetProxy(newgroupname.str(), it2->first.c_str()))
{
vtkSMProxy* proxy = this->NewProxy(element, groupName);
this->RegisterProxy(newgroupname.str(), it2->first.c_str(), proxy);
proxy->Delete();
}
}
}
delete[] newgroupname.str();
......
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