From afba1884ab1977556e56055547e1c6c17704b0ac Mon Sep 17 00:00:00 2001 From: Bo Svensson <90132211+bosvensson1@users.noreply.github.com> Date: Thu, 9 Sep 2021 21:04:11 +0000 Subject: [PATCH] clone.cpp remove dynamic_cast (#3097) --- components/sceneutil/clone.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/components/sceneutil/clone.cpp b/components/sceneutil/clone.cpp index 07a6e691ad..eaf5668c4a 100644 --- a/components/sceneutil/clone.cpp +++ b/components/sceneutil/clone.cpp @@ -2,8 +2,6 @@ #include -#include -#include #include #include @@ -35,11 +33,6 @@ namespace SceneUtil mUpdaterToOldPs[cloned] = updater->getParticleSystem(0); return cloned; } - - if (dynamic_cast(node) || dynamic_cast(node)) - { - return osg::clone(node, *this); - } return osg::CopyOp::operator()(node); }