mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-01 03:21:41 +00:00
clone.cpp remove dynamic_cast (#3097)
This commit is contained in:
parent
147ed39900
commit
afba1884ab
@ -2,8 +2,6 @@
|
||||
|
||||
#include <osg/StateSet>
|
||||
|
||||
#include <osgAnimation/Bone>
|
||||
#include <osgAnimation/Skeleton>
|
||||
#include <osgAnimation/MorphGeometry>
|
||||
#include <osgAnimation/RigGeometry>
|
||||
|
||||
@ -35,11 +33,6 @@ namespace SceneUtil
|
||||
mUpdaterToOldPs[cloned] = updater->getParticleSystem(0);
|
||||
return cloned;
|
||||
}
|
||||
|
||||
if (dynamic_cast<const osgAnimation::Bone*>(node) || dynamic_cast<const osgAnimation::Skeleton*>(node))
|
||||
{
|
||||
return osg::clone(node, *this);
|
||||
}
|
||||
return osg::CopyOp::operator()(node);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user