1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-03-28 08:37:12 +00:00

Don't clone Drawable UpdateCallbacks twice

The Drawable copy constructor takes care of that already.
This commit is contained in:
scrawl 2016-02-01 21:02:48 +01:00
parent 6b48acaf0e
commit 8360cccce7

View File

@ -81,8 +81,6 @@ namespace SceneUtil
#endif #endif
osg::Drawable* cloned = osg::clone(drawable, copyop); osg::Drawable* cloned = osg::clone(drawable, copyop);
if (cloned->getUpdateCallback())
cloned->setUpdateCallback(osg::clone(cloned->getUpdateCallback(), *this));
return cloned; return cloned;
} }
if (dynamic_cast<const SceneUtil::RigGeometry*>(drawable)) if (dynamic_cast<const SceneUtil::RigGeometry*>(drawable))