[osg-users] DEEP_COPY_USERDATA isn't that deep

Chris Djali krizdjali at gmail.com
Sat Sep 28 10:22:40 PDT 2019


Hi,

Is there a way to copy something if all I have is a ref_ptr to Referenced? I see that Object has a clone method, but Referenced doesn't. This poses a potential problem with deep-copying user data, as osg::DefaultUserDataContainer::_userData is a ref_ptr<Referenced>.

Cheers,
Chris

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=76753#76753







More information about the osg-users mailing list