1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-03-03 21:49:41 +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))