diff --git a/components/sceneutil/clone.cpp b/components/sceneutil/clone.cpp index f124d7de7..eb7e63587 100644 --- a/components/sceneutil/clone.cpp +++ b/components/sceneutil/clone.cpp @@ -6,9 +6,11 @@ #include #include #include -#include + #include +#include + namespace SceneUtil { @@ -45,7 +47,7 @@ namespace SceneUtil { if (const osgParticle::ParticleSystem* partsys = dynamic_cast(drawable)) return operator()(partsys); - if (dynamic_cast(drawable) + if (dynamic_cast(drawable) || dynamic_cast(drawable)) return osg::clone(drawable, osg::CopyOp::DEEP_COPY_DRAWABLES);