Don't clone Drawable UpdateCallbacks twice

The Drawable copy constructor takes care of that already.
coverity_scan
scrawl 9 years ago
parent 6b48acaf0e
commit 8360cccce7

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

Loading…
Cancel
Save