Add missing copy of callbacks when a Transform is replaced by Group

(Fixes #3770)
pull/169/head
scrawl 8 years ago
parent 330e5fefd1
commit 48e0f098ff

@ -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;i<transform->getNumChildren();++i)
{

Loading…
Cancel
Save