mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-24 04:43:49 +00:00
Clone fix
This commit is contained in:
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…
x
Reference in New Issue
Block a user