forked from mirror/openmw-tes3mp
Add missing copy of callbacks when a Transform is replaced by Group
(Fixes #3770)
This commit is contained in:
parent
330e5fefd1
commit
48e0f098ff
1 changed files with 4 additions and 1 deletions
|
@ -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…
Reference in a new issue