mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-04 02:41:19 +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 <osg/StateSet>
|
||||||
|
|
||||||
#include <osgAnimation/Bone>
|
|
||||||
#include <osgAnimation/Skeleton>
|
|
||||||
#include <osgAnimation/MorphGeometry>
|
#include <osgAnimation/MorphGeometry>
|
||||||
#include <osgAnimation/RigGeometry>
|
#include <osgAnimation/RigGeometry>
|
||||||
|
|
||||||
@ -35,11 +33,6 @@ namespace SceneUtil
|
|||||||
mUpdaterToOldPs[cloned] = updater->getParticleSystem(0);
|
mUpdaterToOldPs[cloned] = updater->getParticleSystem(0);
|
||||||
return cloned;
|
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);
|
return osg::CopyOp::operator()(node);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user