mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-05 06:40:09 +00:00
Work around OSG 3.2 not respecting the DEEP_COPY_CALLBACK flag (Fixes #3183)
This commit is contained in:
parent
b06730ac61
commit
e02f35264f
@ -81,6 +81,11 @@ namespace SceneUtil
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
osg::Drawable* cloned = osg::clone(drawable, copyop);
|
osg::Drawable* cloned = osg::clone(drawable, copyop);
|
||||||
|
#if OSG_VERSION_LESS_THAN(3,3,3)
|
||||||
|
// work around OSG 3.2 not respecting the DEEP_COPY_CALLBACK flag
|
||||||
|
if (cloned->getUpdateCallback())
|
||||||
|
cloned->setUpdateCallback(osg::clone(cloned->getUpdateCallback(), *this));
|
||||||
|
#endif
|
||||||
return cloned;
|
return cloned;
|
||||||
}
|
}
|
||||||
if (dynamic_cast<const SceneUtil::RigGeometry*>(drawable))
|
if (dynamic_cast<const SceneUtil::RigGeometry*>(drawable))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user