diff --git a/components/sceneutil/optimizer.cpp b/components/sceneutil/optimizer.cpp index b0686d524..1aadc19d6 100644 --- a/components/sceneutil/optimizer.cpp +++ b/components/sceneutil/optimizer.cpp @@ -537,7 +537,10 @@ bool CollectLowestTransformsVisitor::removeTransforms(osg::Node* nodeWeCannotRem group->setDataVariance(osg::Object::STATIC); group->setNodeMask(transform->getNodeMask()); group->setStateSet(transform->getStateSet()); - group->setUserData(transform->getUserData()); + group->setUpdateCallback(transform->getUpdateCallback()); + group->setEventCallback(transform->getEventCallback()); + group->setCullCallback(transform->getCullCallback()); + group->setUserDataContainer(transform->getUserDataContainer()); group->setDescriptions(transform->getDescriptions()); for(unsigned int i=0;igetNumChildren();++i) {