Hi,
 
today I was trying deepClone to duplicate a Viewport. This is the code:
 
    std::vector<std::string> cloneShareTypes;
    cloneShareTypes.push_back("Node");
    cloneShareTypes.push_back("Camera");
    cloneShareTypes.push_back("Background");
    cloneShareTypes.push_back("Window");   
 
    OSG::ViewportUnrecPtr vClone = dynamic_pointer_cast<Viewport>(OSG::deepClone(*vit, cloneShareTypes));
           
The result was a StackOverflow Exception. I tried to debug the problem and it seems deepClone tries to clone the window the viewport is attached to.
I thought the share types definition should prevent deepClone from doing so.
 
 
Michael
------------------------------------------------------------------------------
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
&#149; 3 signs your SCM is hindering your productivity
&#149; Requirements for releasing software faster
&#149; Expert tips and advice for migrating your SCM now
http://p.sf.net/sfu/perforce
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to