From a254877abe7d51df387bee721524028e070dae39 Mon Sep 17 00:00:00 2001 From: scrawl Date: Tue, 21 Apr 2015 22:53:28 +0200 Subject: [PATCH] Clone fix --- components/sceneutil/clone.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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);