1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2026-01-31 20:48:29 +00:00

attach.cpp

This commit is contained in:
Bo Svensson 2021-09-05 16:39:24 +00:00 committed by GitHub
parent 81bcc41a3f
commit ef3bacf11b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -64,8 +64,7 @@ namespace SceneUtil
{
for (const osg::ref_ptr<osg::Node>& node : mToCopy)
{
CopyOp copyOp;
mParent->addChild(osg::clone(node, copyOp));
mParent->addChild(static_cast<osg::Node*>(node->clone(SceneUtil::CopyOp())));
}
mToCopy.clear();
}
@ -125,8 +124,8 @@ namespace SceneUtil
}
else
{
CopyOp copyOp;
osg::ref_ptr<osg::Node> clonedToAttach = osg::clone(toAttach, copyOp);
osg::ref_ptr<osg::Node> clonedToAttach = static_cast<osg::Node*>(toAttach->clone(SceneUtil::CopyOp()));
FindByNameVisitor findBoneOffset("BoneOffset");
clonedToAttach->accept(findBoneOffset);