mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-29 13:20:35 +00:00
Merge pull request #2252 from akortunov/terrain
Do not allocate empty callbacks in the RigGeometry
This commit is contained in:
commit
7917f1fc84
@ -40,8 +40,8 @@ RigGeometry::RigGeometry()
|
||||
, mLastFrameNumber(0)
|
||||
, mBoundsFirstFrame(true)
|
||||
{
|
||||
setUpdateCallback(new osg::Callback); // dummy to make sure getNumChildrenRequiringUpdateTraversal() is correct
|
||||
// update done in accept(NodeVisitor&)
|
||||
setNumChildrenRequiringUpdateTraversal(1);
|
||||
// update done in accept(NodeVisitor&)
|
||||
}
|
||||
|
||||
RigGeometry::RigGeometry(const RigGeometry ©, const osg::CopyOp ©op)
|
||||
@ -54,6 +54,7 @@ RigGeometry::RigGeometry(const RigGeometry ©, const osg::CopyOp ©op)
|
||||
, mBoundsFirstFrame(true)
|
||||
{
|
||||
setSourceGeometry(copy.mSourceGeometry);
|
||||
setNumChildrenRequiringUpdateTraversal(1);
|
||||
}
|
||||
|
||||
void RigGeometry::setSourceGeometry(osg::ref_ptr<osg::Geometry> sourceGeometry)
|
||||
|
Loading…
x
Reference in New Issue
Block a user