Have add new osg::CopyOp which replaces last nights osg::Cloner, the new
class now combines Cloner and DeepCopy into one class. Cloner and DeepCopy will be removed in next commit. Also have added osgcopy app to Demos which shows how the CopyOp have be subclassed to create users own specific handling of copying. Have fixed copy constructor problems in GeoSet which fix the deep copy problem experienced yesterday.
This commit is contained in:
@@ -27,9 +27,9 @@ Node::Node(const Node& node,const Cloner& cloner):
|
||||
_name(node._name),
|
||||
_parents(), // leave empty as parentList is managed by Group.
|
||||
_appCallback(node._appCallback),
|
||||
_numChildrenRequiringAppTraversal(node._numChildrenRequiringAppTraversal),
|
||||
_numChildrenRequiringAppTraversal(0), // assume no children yet.
|
||||
_cullingActive(node._cullingActive),
|
||||
_numChildrenWithCullingDisabled(node._numChildrenWithCullingDisabled),
|
||||
_numChildrenWithCullingDisabled(0), // assume no children yet.
|
||||
_userData(cloner(node._userData.get())),
|
||||
_nodeMask(node._nodeMask),
|
||||
_descriptions(node._descriptions),
|
||||
|
||||
Reference in New Issue
Block a user