Hi Carsten,
 
seems not to solve the problem. All sharetypes in my test case are still copied.
 
Michael
 
Gesendet: Donnerstag, 08. Mai 2014 um 16:57 Uhr
Von: "Carsten Neumann" <carsten.p.neum...@gmail.com>
An: opensg-users@lists.sourceforge.net
Betreff: Re: [Opensg-users] OpenSG2: DeepClone
Hello Michael,

On 05/08/2014 11:47 AM, Michael Raab wrote:
> 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.

yes, it appears this was only implemented for deepCloneTree (see
Source/Base/FieldContainer/Base/Node/OSGNode.h).
I'm attaching a patch that should fix it, would you mind giving it a
try? Thanks!

Cheers,
Carsten
------------------------------------------------------------------------------
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
------------------------------------------------------------------------------
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