mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 20:53:50 +00:00
MorphGeometry copy fix
This commit is contained in:
parent
af2f26d04d
commit
668d365ef9
1 changed files with 3 additions and 1 deletions
|
@ -51,7 +51,9 @@ namespace SceneUtil
|
|||
if (dynamic_cast<const SceneUtil::RigGeometry*>(drawable)
|
||||
|| dynamic_cast<const osgAnimation::MorphGeometry*>(drawable))
|
||||
{
|
||||
osg::Drawable* cloned = osg::clone(drawable, *this);
|
||||
osg::CopyOp copyop = *this;
|
||||
copyop.setCopyFlags(copyop.getCopyFlags()|osg::CopyOp::DEEP_COPY_ARRAYS);
|
||||
osg::Drawable* cloned = osg::clone(drawable, copyop);
|
||||
if (cloned->getUpdateCallback())
|
||||
cloned->setUpdateCallback(osg::clone(cloned->getUpdateCallback(), *this));
|
||||
return cloned;
|
||||
|
|
Loading…
Reference in a new issue