forked from mirror/openmw-tes3mp
Clone fix
This commit is contained in:
parent
28643660d3
commit
a254877abe
1 changed files with 4 additions and 2 deletions
|
@ -6,9 +6,11 @@
|
|||
#include <osgParticle/ParticleSystemUpdater>
|
||||
#include <osgParticle/Emitter>
|
||||
#include <osgParticle/Program>
|
||||
#include <osgAnimation/RigGeometry>
|
||||
|
||||
#include <osgAnimation/MorphGeometry>
|
||||
|
||||
#include <components/sceneutil/riggeometry.hpp>
|
||||
|
||||
namespace SceneUtil
|
||||
{
|
||||
|
||||
|
@ -45,7 +47,7 @@ namespace SceneUtil
|
|||
{
|
||||
if (const osgParticle::ParticleSystem* partsys = dynamic_cast<const osgParticle::ParticleSystem*>(drawable))
|
||||
return operator()(partsys);
|
||||
if (dynamic_cast<const osgAnimation::RigGeometry*>(drawable)
|
||||
if (dynamic_cast<const SceneUtil::RigGeometry*>(drawable)
|
||||
|| dynamic_cast<const osgAnimation::MorphGeometry*>(drawable))
|
||||
return osg::clone(drawable, osg::CopyOp::DEEP_COPY_DRAWABLES);
|
||||
|
||||
|
|
Loading…
Reference in a new issue