Clone fix

c++11
scrawl 10 years ago
parent 28643660d3
commit a254877abe

@ -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…
Cancel
Save